From: Christoph Sommer Date: Sat, 8 Apr 2006 15:30:24 +0000 (+0000) Subject: Console toggle now scancode 49 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c954adb5469fca0729e8c76c3bc50b70db15f2c1;p=supertux.git Console toggle now scancode 49 SVN-Revision: 3271 --- diff --git a/src/control/joystickkeyboardcontroller.cpp b/src/control/joystickkeyboardcontroller.cpp index 3a8e279ac..8e715f01a 100644 --- a/src/control/joystickkeyboardcontroller.cpp +++ b/src/control/joystickkeyboardcontroller.cpp @@ -246,7 +246,7 @@ JoystickKeyboardController::process_event(const SDL_Event& event) switch(event.type) { case SDL_KEYUP: case SDL_KEYDOWN: - if (event.key.keysym.sym == SDLK_CARET) { + if (event.key.keysym.scancode == 49) { // console key was pressed - toggle console if (event.type == SDL_KEYDOWN) { if (Console::hasFocus()) {