diff --git a/src/game/g_touch.pas b/src/game/g_touch.pas
index faed65c36ab5fc6cb7c1d41d29496ef0bcb3c21e..b9250acb63bd32958b50e96cb4617e1b0d6360f3 100644 (file)
--- a/src/game/g_touch.pas
+++ b/src/game/g_touch.pas
{$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