diff --git a/src/game/g_main.pas b/src/game/g_main.pas
index 93655f66f8a7fe939e1338b31b9d517b2ca632da..960eb9eeafaccd3325d119a7a042c03b5cfd796f 100644 (file)
--- a/src/game/g_main.pas
+++ b/src/game/g_main.pas
sdlflags := SDL_INIT_JOYSTICK or SDL_INIT_TIMER or SDL_INIT_VIDEO;
{$ENDIF}
{$ENDIF}
sdlflags := SDL_INIT_JOYSTICK or SDL_INIT_TIMER or SDL_INIT_VIDEO;
{$ENDIF}
{$ENDIF}
+
+ SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, '0');
+
if SDL_Init(sdlflags) < 0 then
raise Exception.Create('SDL: Init failed: ' + SDL_GetError());
if SDL_Init(sdlflags) < 0 then
raise Exception.Create('SDL: Init failed: ' + SDL_GetError());
if (g_ActiveWindow = nil) then g_Game_Pause(not gPause);
end;
if (g_ActiveWindow = nil) then g_Game_Pause(not gPause);
end;
- IK_BACKQUOTE: // <`/~/¨/¸>:
+ IK_BACKQUOTE, VK_CONSOLE: // <`/~/¨/¸>:
begin
g_Console_Switch();
end;
begin
g_Console_Switch();
end;
- IK_ESCAPE: // <Esc>:
+ IK_ESCAPE, VK_ESCAPE: // <Esc>:
begin
if gChatShow then
begin
begin
if gChatShow then
begin