]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Game.cpp
The console key is now easy to configure. (the option will only be shown in debug...
[lugaru.git] / Source / Game.cpp
index 77b9a5b21cda64a480dc3f230f8c129fba868934..0cc5057361aa86855ff8ff42fa6fc2ddf0f29b6a 100644 (file)
@@ -161,6 +161,7 @@ Game::Game()
        autocam = 0;
 
        crouchkey = 0,jumpkey = 0,forwardkey = 0,chatkey = 0,backkey = 0,leftkey = 0,rightkey = 0,drawkey = 0,throwkey = 0,attackkey = 0;
+       consolekey = 0;
        oldattackkey = 0;
 
        loading = 0;
@@ -310,6 +311,8 @@ void Game::setKeySelected_thread() {
                        break;
                        case 8: attackkey=keycode;
                        break;
+                       case 9: consolekey=keycode;
+                       break;
                        default:
                        break;
                }