diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 19:16:25 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 19:16:25 +0100 |
commit | b421eec1073c1fb4b99d46cc36c5c9cbd8d3c4a7 (patch) | |
tree | 461e290e0c2c3adf588f02d24031edc7f8114390 /src/crepe/api/Script.cpp | |
parent | c4c896c2995f2b74fca322736aa944b28b14a1f6 (diff) | |
parent | a8ccf7fe8662086bb223aa4eafd0f85e717d16cf (diff) |
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/button-improvement
Diffstat (limited to 'src/crepe/api/Script.cpp')
-rw-r--r-- | src/crepe/api/Script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/Script.cpp b/src/crepe/api/Script.cpp index d4eaae9..583c04f 100644 --- a/src/crepe/api/Script.cpp +++ b/src/crepe/api/Script.cpp @@ -31,7 +31,7 @@ const keyboard_state_t & Script::get_keyboard_state() const { return sdl_context.get_keyboard_state(); } -bool Script::get_key_state(Keycode key) const { +bool Script::get_key_state(Keycode key) const noexcept { try { return this->get_keyboard_state().at(key); } catch (...) { |