diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-21 13:15:59 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-21 13:15:59 +0100 |
commit | 4e8c07d3fd949287fc2361284a5a7704e642396e (patch) | |
tree | 18d7e5c2d41cedb00a29ac303637102c7d4b157d /src/inputmanager.cpp | |
parent | f3e75c7f821675740736b46094382d55c7e6ee5c (diff) | |
download | YAGE-4e8c07d3fd949287fc2361284a5a7704e642396e.tar.gz YAGE-4e8c07d3fd949287fc2361284a5a7704e642396e.zip |
Correcting indentation and removed vector2d.cpp
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r-- | src/inputmanager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp index 0bcb35f8..402cc420 100644 --- a/src/inputmanager.cpp +++ b/src/inputmanager.cpp @@ -5,20 +5,20 @@ namespace yage void InputManager::keyPressed(unsigned key) { - key_map_[key]=true; + key_map_[key]=true; } void InputManager::keyReleased(unsigned key) { - key_map_[key]=false; + key_map_[key]=false; } bool InputManager::isKeyPressed(unsigned key) const { - auto key_index=key_map_.find(key); - if(key_index!=key_map_.end()) - return key_index->second; - return false; + auto key_index=key_map_.find(key); + if(key_index!=key_map_.end()) + return key_index->second; + return false; } } |