index 992d6dc4c7091de9906f6f9808ef695c7553542c..40e0dff752b0b90b3ac59a9ebf9246cb96314896 100644 (file)
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,
e_ResizeWindow(w, h);
e_InitGL;
g_Game_SetupScreenSize;
- {$IFNDEF ANDOIRD}
+ {$IFNDEF ANDROID}
(* This will fix menu reset on keyboard showing *)
g_Menu_Reset;
{$ENDIF}
procedure sys_Repaint;
begin
- if glRenderToFBO then
- e_BlitFramebuffer(gWinSizeX, gWinSizeY);
SDL_GL_SwapWindow(window)
end;
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;