DEADSOFTWARE

fix input and bind handling in console
[d2df-sdl.git] / src / game / g_touch.pas
index 7cdc3282c1dd25057ed91b4ef4a251c4c3f6f7a9..faed65c36ab5fc6cb7c1d41d29496ef0bcb3c21e 100644 (file)
@@ -184,6 +184,7 @@ implementation
   procedure g_Touch_Init;
   begin
 {$IFNDEF HEADLESS}
+    g_Touch_ShowKeyboard(FALSE);
     g_touch_enabled := SDL_GetNumTouchDevices() > 0
 {$ENDIF}
   end;
@@ -191,9 +192,8 @@ implementation
   procedure g_Touch_ShowKeyboard(yes: Boolean);
   begin
 {$IFNDEF HEADLESS}
-    if not g_touch_enabled then
-      Exit;
-
+    if g_dbg_input then
+      e_LogWritefln('g_Touch_ShowKeyboard(%s)', [yes]);
     if yes then
       SDL_StartTextInput
     else