diff options
Diffstat (limited to 'src/engine/user/input.cpp')
-rw-r--r-- | src/engine/user/input.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/user/input.cpp b/src/engine/user/input.cpp index ac6d660..cbba143 100644 --- a/src/engine/user/input.cpp +++ b/src/engine/user/input.cpp @@ -38,6 +38,11 @@ bool UserInputObserver::is_key_pressed(Key key) noexcept return is_key_pressed; } +auto UserInputObserver::get_currently_pressed_key() const noexcept -> Key +{ + return _currently_pressed; +} + void UserInputObserver::clear_currently_pressed() noexcept { _currently_pressed_mutex.lock(); |