diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 20:12:30 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 20:12:30 +0100 |
commit | eb9c76082d7d0ee0c3e55cb8eadfa5f8978bd8f2 (patch) | |
tree | 97b0a6c7ae7e0feaba856a1e3e3836fa91a4dc0b /src/crepe/system/InputSystem.h | |
parent | b421eec1073c1fb4b99d46cc36c5c9cbd8d3c4a7 (diff) |
button improvements
Diffstat (limited to 'src/crepe/system/InputSystem.h')
-rw-r--r-- | src/crepe/system/InputSystem.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/crepe/system/InputSystem.h b/src/crepe/system/InputSystem.h index eefd9fe..9cad178 100644 --- a/src/crepe/system/InputSystem.h +++ b/src/crepe/system/InputSystem.h @@ -5,6 +5,9 @@ #include "../types.h" #include "../util/OptionalRef.h" +#include "../api/Metadata.h" +#include "../api/Event.h" + #include "System.h" @@ -14,6 +17,25 @@ class Camera; class Button; class Transform; /** + * \brief Event triggered during a collision between objects. + */ +class ButtonPressEvent : public Event { +public: + const Metadata& meta_data; + ButtonPressEvent(const Metadata& meta_data) : meta_data(meta_data){};; +}; +class ButtonEnterEvent : public Event { +public: + const Metadata& meta_data; + ButtonEnterEvent(const Metadata& meta_data) : meta_data(meta_data){}; +}; +class ButtonExitEvent : public Event { +public: + const Metadata& meta_data; + ButtonExitEvent(const Metadata& meta_data) : meta_data(meta_data){}; +}; + +/** * \brief Handles the processing of input events created by SDLContext * * This system processes events such as mouse clicks, mouse movement, and keyboard |