diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-01 20:49:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 00:37:51 +0300 |
commit | 4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch) | |
tree | 7cadc707bb49e4c148ba9c182075697a9643e20a /src/inputmanager.cpp | |
parent | ed3410d7eb61593a2235ddba97ce257c85e405a6 (diff) | |
download | mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2 mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip |
Add const to more classes.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r-- | src/inputmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp index 7f62862be..969867a83 100644 --- a/src/inputmanager.cpp +++ b/src/inputmanager.cpp @@ -503,7 +503,7 @@ bool InputManager::handleEvent(const SDL_Event &event) } if (gui) { - bool res = gui->handleInput(); + const bool res = gui->handleInput(); if (res && event.type == SDL_KEYDOWN) return true; } @@ -689,7 +689,7 @@ int InputManager::getKeyIndex(const int value, const int grp, return Input::KEY_NO_VALUE; } -int InputManager::getActionByKey(const SDL_Event &event) +int InputManager::getActionByKey(const SDL_Event &event) const { // for now support only keyboard events if (event.type == SDL_KEYDOWN || event.type == SDL_KEYUP) |