X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_touch.pas;h=7cdc3282c1dd25057ed91b4ef4a251c4c3f6f7a9;hp=972c5422283f1c53f42d7ceb50097d7488661f14;hb=32feca26531633f6175ac01859db60016a9d0455;hpb=d92a9e2807dda8a533def35afa801ed975920885 diff --git a/src/game/g_touch.pas b/src/game/g_touch.pas index 972c542..7cdc328 100644 --- a/src/game/g_touch.pas +++ b/src/game/g_touch.pas @@ -37,7 +37,7 @@ implementation uses SysUtils, - e_log, e_graphics, e_input, g_options, g_game, g_main, g_gui, g_weapons, g_console; + e_log, e_graphics, e_input, g_options, g_game, g_main, g_gui, g_weapons, g_console, g_window; var angleFire: Boolean; @@ -207,6 +207,9 @@ implementation procedure KeyUp (finger, i: Integer); begin + if g_dbg_input then + e_LogWritefln('Input Debug: g_touch.KeyUp, finger=%s, key=%s', [finger, i]); + keyFinger[i] := 0; e_KeyUpDown(i, False); g_Console_ProcessBind(i, False); @@ -226,6 +229,9 @@ implementation procedure KeyDown (finger, i: Integer); begin + if g_dbg_input then + e_LogWritefln('Input Debug: g_touch.KeyDown, finger=%s, key=%s', [finger, i]); + keyFinger[i] := finger; e_KeyUpDown(i, True); g_Console_ProcessBind(i, True);