X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_touch.pas;h=a35a56ef75fe8ce57750c0585153d04205d83387;hb=6c6b87eea9373ec4f1cb859223d3708d8e2a59c6;hp=faed65c36ab5fc6cb7c1d41d29496ef0bcb3c21e;hpb=5eaf38a53865288793931062dedeedc497075144;p=d2df-sdl.git diff --git a/src/game/g_touch.pas b/src/game/g_touch.pas index faed65c..a35a56e 100644 --- a/src/game/g_touch.pas +++ b/src/game/g_touch.pas @@ -2,8 +2,7 @@ * * 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 @@ -194,7 +193,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 @@ -295,7 +295,9 @@ implementation 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