From 2f0651c7cc08650d8e67e1734456660c763de5e9 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Wed, 5 May 2010 08:29:37 +0000 Subject: [PATCH] sdl: fixed a bug introduced in r1744; i think qeed committed changes to an older version of the file or something; all is well now the bug slowed the emulation speed down to 2% --- src/drivers/sdl/input.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index e082fdf8..b652ca4c 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -379,11 +379,11 @@ KeyboardCommands() char* movie_fname = ""; // get the keyboard input + #if SDL_VERSION_ATLEAST(1, 3, 0) + g_keyState = SDL_GetKeyboardState(NULL); + #else g_keyState = SDL_GetKeyState(NULL); - if (g_keyState[SDLK_BACKQUOTE]) - IncreaseEmulationSpeed(); - else - DecreaseEmulationSpeed(); + #endif // check if the family keyboard is enabled if(InputType[2] == SIFC_FKB) {