diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-15 22:44:09 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-15 22:44:09 +0100 |
commit | 3c99c73f3c1c31ba97f7e8c74f434c880f8a9036 (patch) | |
tree | 387251ddd34b35d34a45638a0231ffe95f4a088b /src/crepe/api/Script.cpp | |
parent | ff969f4e676d8cb565da1581733a35eb64eb03c6 (diff) |
enter between functions
Diffstat (limited to 'src/crepe/api/Script.cpp')
-rw-r--r-- | src/crepe/api/Script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Script.cpp b/src/crepe/api/Script.cpp index 4cd59a5..d4eaae9 100644 --- a/src/crepe/api/Script.cpp +++ b/src/crepe/api/Script.cpp @@ -30,11 +30,11 @@ const keyboard_state_t & Script::get_keyboard_state() const { SDLContext & sdl_context = this->mediator->sdl_context; return sdl_context.get_keyboard_state(); } -bool Script::get_key_state(Keycode key) const{ + +bool Script::get_key_state(Keycode key) const { try { return this->get_keyboard_state().at(key); } catch (...) { return false; } } - |