diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-23 19:47:25 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:00 +0200 |
commit | 6d89d5db5140c04cc94bf4791a32a06a89e95b62 (patch) | |
tree | d7ac1cf4f9d65fefedc3adf227f39cf18c9507a0 /src/interfaces/input.hpp | |
parent | 4b8db1ab0ae53bd8f6685af2fb55a550c04f8199 (diff) |
refactor: improve input handling in game loop
Diffstat (limited to 'src/interfaces/input.hpp')
-rw-r--r-- | src/interfaces/input.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/input.hpp b/src/interfaces/input.hpp index 0797c0d..c2ecefb 100644 --- a/src/interfaces/input.hpp +++ b/src/interfaces/input.hpp @@ -15,5 +15,7 @@ public: virtual bool is_key_pressed(Key key) noexcept = 0; + virtual Key get_currently_pressed_key() const noexcept = 0; + virtual void clear_currently_pressed() noexcept = 0; }; |