aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 20:22:22 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 20:22:22 +0100
commit917103511c6dcb9aa258cc4dc1aeff9e27593d19 (patch)
treed8592d4121f99b0754b2216eb369000b53800b7c /src/crepe/system
parentaee0624d8a6db7c32d0c8e0f871c5453b5ae316a (diff)
added missing doxygen
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/InputSystem.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/crepe/system/InputSystem.h b/src/crepe/system/InputSystem.h
index 6a638e3..45c593a 100644
--- a/src/crepe/system/InputSystem.h
+++ b/src/crepe/system/InputSystem.h
@@ -15,22 +15,34 @@ namespace crepe {
class Camera;
class Button;
class Transform;
-/**
- * \brief Event triggered during a collision between objects.
- */
+//! Event triggered when a button is clicked
class ButtonPressEvent : public Event {
public:
+ //! Metadata of the button.
const Metadata & meta_data;
+ /**
+ * \param meta_data Metadata of the button pressed
+ */
ButtonPressEvent(const Metadata & meta_data) : meta_data(meta_data){};
};
+//! Event triggered when the mouse enters a button
class ButtonEnterEvent : public Event {
public:
+ //! Metadata of the button.
const Metadata & meta_data;
+ /**
+ * \param meta_data Metadata of the button pressed
+ */
ButtonEnterEvent(const Metadata & meta_data) : meta_data(meta_data){};
};
+//! Event triggered when the mouse leaves a button
class ButtonExitEvent : public Event {
public:
+ //! Metadata of the button.
const Metadata & meta_data;
+ /**
+ * \param meta_data Metadata of the button pressed
+ */
ButtonExitEvent(const Metadata & meta_data) : meta_data(meta_data){};
};