fix input_method_creator

This commit is contained in:
xianjimli 2019-02-20 16:00:01 +08:00
parent 9273cbf5e5
commit 8d40347c73
2 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,4 @@
## asset\_script\_type\_t
### 概述
脚本资源类型定义。

View File

@ -33,14 +33,14 @@
input_method_t* input_method_create(void) {
input_method_t* im = NULL;
#if defined(WITH_SDL)
#if defined(WITH_NULL_IM)
im = input_method_null_create();
#elif defined(WITH_SDL)
if (system_info()->app_type == APP_DESKTOP) {
im = input_method_sdl_create();
} else {
im = input_method_default_create();
}
#elif defined(WITH_NULL_IM)
im = input_method_null_create();
#else
im = input_method_default_create();
#endif /*WITH_SDL*/