diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-19 15:16:16 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-11-19 15:16:16 +0100 |
commit | 6c2fc3716c9c6c68e982b243af5f7ed04fb35e86 (patch) | |
tree | c5a20a8a5352edc19cca1d6ddcbf7869db6e1055 /src/crepe/system/InputSystem.h | |
parent | 60cbc3d649775053ac1d333716c9f5fda651a643 (diff) |
button handling
Diffstat (limited to 'src/crepe/system/InputSystem.h')
-rw-r--r-- | src/crepe/system/InputSystem.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crepe/system/InputSystem.h b/src/crepe/system/InputSystem.h index 642035f..c50d928 100644 --- a/src/crepe/system/InputSystem.h +++ b/src/crepe/system/InputSystem.h @@ -1,14 +1,18 @@ #pragma once #include "System.h" - +#include "../api/Event.h" namespace crepe { class InputSystem : public System { public: using System::System; + InputSystem(ComponentManager & component_manager); void update() override; - void + bool handle_click(const MouseClickEvent &event); + bool handle_move(const MouseMoveEvent &event); + bool handle_key_press(const KeyPressEvent &event); + bool handle_key_release(const KeyReleaseEvent &event); }; } // namespace crepe |