diff --git a/src/game/g_touch.pas b/src/game/g_touch.pas
index 7cdc3282c1dd25057ed91b4ef4a251c4c3f6f7a9..b9250acb63bd32958b50e96cb4617e1b0d6360f3 100644 (file)
--- a/src/game/g_touch.pas
+++ b/src/game/g_touch.pas
procedure g_Touch_Init;
begin
{$IFNDEF HEADLESS}
+ g_Touch_ShowKeyboard(FALSE);
g_touch_enabled := SDL_GetNumTouchDevices() > 0
{$ENDIF}
end;
procedure g_Touch_ShowKeyboard(yes: Boolean);
begin
{$IFNDEF HEADLESS}
- if not g_touch_enabled then
- Exit;
-
- if yes then
+ if g_dbg_input then
+ e_LogWritefln('g_Touch_ShowKeyboard(%s)', [yes]);
+ (* on desktop we always receive text (needed for cheats) *)
+ if yes or (SDL_HasScreenKeyboardSupport() = SDL_FALSE) then
SDL_StartTextInput
else
SDL_StopTextInput