diff --git a/src/game/g_touch.pas b/src/game/g_touch.pas
index 9eed28e26ae525151e0cc56e4cc665cad8b5a08f..a35a56ef75fe8ce57750c0585153d04205d83387 100644 (file)
--- a/src/game/g_touch.pas
+++ b/src/game/g_touch.pas
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation, version 3 of the License ONLY.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
procedure g_Touch_ShowKeyboard(yes: Boolean);
begin
{$IFNDEF HEADLESS}
- 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
end;
procedure g_Touch_Draw;
+{$IFNDEF HEADLESS}
var i, x, y, w, h: Integer; founded: Boolean;
+{$ENDIF}
begin
{$IFNDEF HEADLESS}
if not g_touch_enabled then