DEADSOFTWARE

fix chat/console input
[d2df-sdl.git] / src / game / g_touch.pas
index faed65c36ab5fc6cb7c1d41d29496ef0bcb3c21e..b9250acb63bd32958b50e96cb4617e1b0d6360f3 100644 (file)
@@ -194,7 +194,8 @@ implementation
 {$IFNDEF HEADLESS}
     if g_dbg_input then
       e_LogWritefln('g_Touch_ShowKeyboard(%s)', [yes]);
-    if yes then
+    (* on desktop we always receive text (needed for cheats) *)
+    if yes or (SDL_HasScreenKeyboardSupport() = SDL_FALSE) then
       SDL_StartTextInput
     else
       SDL_StopTextInput