X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_touch.pas;h=b9250acb63bd32958b50e96cb4617e1b0d6360f3;hb=6b0ba68063ba1c8f35903d3e939e5eeb91d2a58c;hp=9eed28e26ae525151e0cc56e4cc665cad8b5a08f;hpb=f4de88f1f4384cc3c798bccc695d92ad3781eb7b;p=d2df-sdl.git diff --git a/src/game/g_touch.pas b/src/game/g_touch.pas index 9eed28e..b9250ac 100644 --- a/src/game/g_touch.pas +++ b/src/game/g_touch.pas @@ -192,7 +192,10 @@ implementation 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