From 3a2238720a9d7c03c88a711d6603d920f4f9eed6 Mon Sep 17 00:00:00 2001 From: relnev Date: Mon, 17 Jun 2002 23:11:39 +0000 Subject: [PATCH] enable sdl key repeating. swap '/` keys. --- src/graphics/gropengl.cpp | 8 ++++++++ src/io/key.cpp | 9 +++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/graphics/gropengl.cpp b/src/graphics/gropengl.cpp index 39219b3..76a6f67 100644 --- a/src/graphics/gropengl.cpp +++ b/src/graphics/gropengl.cpp @@ -15,6 +15,11 @@ * Code that uses the OpenGL graphics library * * $Log$ + * Revision 1.49 2002/06/17 23:11:39 relnev + * enable sdl key repeating. + * + * swap '/` keys. + * * Revision 1.48 2002/06/09 04:41:17 relnev * added copyright header * @@ -2882,6 +2887,9 @@ void gr_opengl_init() SDL_ShowCursor(0); SDL_WM_SetCaption (Osreg_title, "FS2"); + + /* might as well put this here */ + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); #endif glViewport(0, 0, gr_screen.max_w, gr_screen.max_h); diff --git a/src/io/key.cpp b/src/io/key.cpp index 621b68b..fa34329 100644 --- a/src/io/key.cpp +++ b/src/io/key.cpp @@ -15,6 +15,11 @@ * * * $Log$ + * Revision 1.8 2002/06/17 23:11:39 relnev + * enable sdl key repeating. + * + * swap '/` keys. + * * Revision 1.7 2002/06/09 04:41:21 relnev * added copyright header * @@ -288,8 +293,8 @@ void FillSDLArray () SDLtoFS2[SDLK_LEFTBRACKET] = KEY_LBRACKET; SDLtoFS2[SDLK_RIGHTBRACKET] = KEY_RBRACKET; - SDLtoFS2[SDLK_BACKQUOTE] = KEY_RAPOSTRO; - SDLtoFS2[SDLK_QUOTE] = KEY_LAPOSTRO; + SDLtoFS2[SDLK_BACKQUOTE] = KEY_LAPOSTRO; + SDLtoFS2[SDLK_QUOTE] = KEY_RAPOSTRO; SDLtoFS2[SDLK_ESCAPE] = KEY_ESC; SDLtoFS2[SDLK_RETURN] = KEY_ENTER; -- 2.39.2