mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 19:50:45 +00:00
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:
parent
6634845c35
commit
e07fff7d64
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue