X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fsdl2%2Fg_system.pas;h=40e0dff752b0b90b3ac59a9ebf9246cb96314896;hb=5c816a8e702fd39c65d0928a3315d81e979f30fb;hp=8842b6794b7362b7cf4860c09abacbbaa0ca91f4;hpb=66982238c89c417b323194c6b1fffc1dfed33d04;p=d2df-sdl.git diff --git a/src/game/sdl2/g_system.pas b/src/game/sdl2/g_system.pas index 8842b67..40e0dff 100644 --- a/src/game/sdl2/g_system.pas +++ b/src/game/sdl2/g_system.pas @@ -41,7 +41,7 @@ implementation uses SysUtils, SDL2, Math, ctypes, - e_log, e_graphics, e_input, e_sound, + e_log, r_graphics, e_input, e_sound, {$INCLUDE ../nogl/noGLuses.inc} {$IFDEF ENABLE_HOLMES} g_holmes, sdlcarcass, fui_ctls, @@ -507,9 +507,11 @@ implementation e_KeyUpDown(key, down); g_Console_ProcessBind(key, down); end - else if gConsoleShow or gChatShow or (g_ActiveWindow <> nil) then + else begin - KeyPress(key) // key repeat in menus and shit + if g_dbg_input then + e_LogWritefln('Input Debug: keyrep, scancode=%s', [key]); + g_Console_ProcessBindRepeat(key); end end;