aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Event.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-14 12:38:22 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-14 12:38:22 +0100
commitccbfb97a11cd931655f2762443ffc36f5f25e86f (patch)
tree7ac5eae85844ab177e21e3033d26ffc738e06ad5 /src/crepe/api/Event.h
parenta03f90fa9bcbd5a0c5b5d1f2e50df183c7c3640c (diff)
removed sdlcontext from header and implemented initiliser list for EventData
Diffstat (limited to 'src/crepe/api/Event.h')
-rw-r--r--src/crepe/api/Event.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crepe/api/Event.h b/src/crepe/api/Event.h
index 17ae809..d353a5b 100644
--- a/src/crepe/api/Event.h
+++ b/src/crepe/api/Event.h
@@ -39,7 +39,7 @@ public:
*/
class MousePressEvent : public Event {
public:
- //! mouse position
+ //! mouse position in game units
vec2 mouse_pos = {0, 0};
//! The mouse button that was pressed.
@@ -51,7 +51,7 @@ public:
*/
class MouseClickEvent : public Event {
public:
- //! mouse position
+ //! mouse position in game units
vec2 mouse_pos = {0, 0};
//! The mouse button that was clicked.
@@ -63,7 +63,7 @@ public:
*/
class MouseReleaseEvent : public Event {
public:
- //! mouse position
+ //! mouse position in game units
vec2 mouse_pos = {0, 0};
//! The mouse button that was released.
@@ -75,7 +75,7 @@ public:
*/
class MouseMoveEvent : public Event {
public:
- //! new mouse position
+ //! mouse position in game units
vec2 mouse_pos = {0, 0};
//! The change in mouse position relative to the last position (in pixels).
ivec2 mouse_delta = {0, 0};
@@ -86,7 +86,7 @@ public:
*/
class MouseScrollEvent : public Event {
public:
- //! mouse position when the scroll happened.
+ //! mouse position in game units when the scroll happened.
vec2 mouse_pos = {0, 0};
//! scroll direction (-1 = down, 1 = up)
int scroll_direction = 0;