iOS: Fix on-screen keyboard, broken in r5625.

git-svn-id: https://svn.eduke32.com/eduke32@5634 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-02-29 06:33:52 +00:00
parent 6634845c35
commit e07fff7d64

View file

@ -51,16 +51,22 @@ extern int32_t voting;
FORCE_INLINE void WithSDL2_StartTextInput() FORCE_INLINE void WithSDL2_StartTextInput()
{ {
#if defined EDUKE32_TOUCH_DEVICES && defined SDL_MAJOR_VERSION && SDL_MAJOR_VERSION > 1 #if defined EDUKE32_TOUCH_DEVICES && defined SDL_MAJOR_VERSION && SDL_MAJOR_VERSION > 1
// SDL_StartTextInput(); # if defined __ANDROID__
AndroidShowKeyboard(1); AndroidShowKeyboard(1);
# else
SDL_StartTextInput();
# endif
#endif #endif
} }
FORCE_INLINE void WithSDL2_StopTextInput() FORCE_INLINE void WithSDL2_StopTextInput()
{ {
#if defined EDUKE32_TOUCH_DEVICES && defined SDL_MAJOR_VERSION && SDL_MAJOR_VERSION > 1 #if defined EDUKE32_TOUCH_DEVICES && defined SDL_MAJOR_VERSION && SDL_MAJOR_VERSION > 1
// SDL_StopTextInput(); # if defined __ANDROID__
AndroidShowKeyboard(0); AndroidShowKeyboard(0);
# else
SDL_StopTextInput();
# endif
#endif #endif
} }