Commit 3e51b91c authored by Benjamin 'Albsi' Albsmeier's avatar Benjamin 'Albsi' Albsmeier
Browse files

now again with key down

parent 71cf3b6d
......@@ -521,9 +521,7 @@ namespace gdw{
}
int input::isKeyDown(SDL_Keycode key){
auto it = keyMap_.find(SDL_GetScancodeFromKey(key));
if(it != keyMap_.end())return keyMap_.at(it->first);
return 0;
return keyState_[SDL_GetScancodeFromKey(key)];
}
int input::isKeyDown(inputMapping key){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment