From e07fff7d64f5070667440f062acb2bd025881269 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 29 Feb 2016 06:33:52 +0000 Subject: [PATCH] iOS: Fix on-screen keyboard, broken in r5625. git-svn-id: https://svn.eduke32.com/eduke32@5634 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/menus.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index f6b14e243..be9a8fc0b 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -51,16 +51,22 @@ extern int32_t voting; FORCE_INLINE void WithSDL2_StartTextInput() { #if defined EDUKE32_TOUCH_DEVICES && defined SDL_MAJOR_VERSION && SDL_MAJOR_VERSION > 1 -// SDL_StartTextInput(); +# if defined __ANDROID__ AndroidShowKeyboard(1); +# else + SDL_StartTextInput(); +# endif #endif } FORCE_INLINE void WithSDL2_StopTextInput() { #if defined EDUKE32_TOUCH_DEVICES && defined SDL_MAJOR_VERSION && SDL_MAJOR_VERSION > 1 -// SDL_StopTextInput(); +# if defined __ANDROID__ AndroidShowKeyboard(0); +# else + SDL_StopTextInput(); +# endif #endif }