Console toggle now scancode 49
authorChristoph Sommer <mail@christoph-sommer.de>
Sat, 8 Apr 2006 15:30:24 +0000 (15:30 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Sat, 8 Apr 2006 15:30:24 +0000 (15:30 +0000)
SVN-Revision: 3271

src/control/joystickkeyboardcontroller.cpp

index 3a8e279..8e715f0 100644 (file)
@@ -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()) {