aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/input.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/input.hpp')
-rw-r--r--src/interfaces/input.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/input.hpp b/src/interfaces/input.hpp
index c2ecefb..3558363 100644
--- a/src/interfaces/input.hpp
+++ b/src/interfaces/input.hpp
@@ -13,9 +13,9 @@ public:
virtual void listen() noexcept = 0;
- virtual bool is_key_pressed(Key key) noexcept = 0;
+ virtual auto is_key_pressed(Key key) noexcept -> bool = 0;
- virtual Key get_currently_pressed_key() const noexcept = 0;
+ [[nodiscard]] virtual auto get_currently_pressed_key() const noexcept -> Key = 0;
virtual void clear_currently_pressed() noexcept = 0;
};