From 6d89d5db5140c04cc94bf4791a32a06a89e95b62 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 23 May 2022 19:47:25 +0200 Subject: refactor: improve input handling in game loop --- src/interfaces/input.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/interfaces') 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; }; -- cgit v1.2.3-18-g5258