aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Event.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-13 09:15:56 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-13 09:15:56 +0100
commit2b3659c8c5dace0ff9ff9cb8b9421f7f3f890218 (patch)
tree5a051d3d11c2bb358b170735b0bcdee0e997aa25 /src/crepe/api/Event.h
parent2793e8be0e6c44bb34a25522e1e75ed8a2868b32 (diff)
added window events back to code and function cleanup
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 66dd0cc..17ae809 100644
--- a/src/crepe/api/Event.h
+++ b/src/crepe/api/Event.h
@@ -40,7 +40,7 @@ public:
class MousePressEvent : public Event {
public:
//! mouse position
- ivec2 mouse_pos = {0, 0};
+ vec2 mouse_pos = {0, 0};
//! The mouse button that was pressed.
MouseButton button = MouseButton::NONE;
@@ -52,7 +52,7 @@ public:
class MouseClickEvent : public Event {
public:
//! mouse position
- ivec2 mouse_pos = {0, 0};
+ vec2 mouse_pos = {0, 0};
//! The mouse button that was clicked.
MouseButton button = MouseButton::NONE;
@@ -64,7 +64,7 @@ public:
class MouseReleaseEvent : public Event {
public:
//! mouse position
- ivec2 mouse_pos = {0, 0};
+ vec2 mouse_pos = {0, 0};
//! The mouse button that was released.
MouseButton button = MouseButton::NONE;
@@ -76,7 +76,7 @@ public:
class MouseMoveEvent : public Event {
public:
//! new mouse position
- ivec2 mouse_pos = {0, 0};
+ vec2 mouse_pos = {0, 0};
//! The change in mouse position relative to the last position (in pixels).
ivec2 mouse_delta = {0, 0};
};
@@ -87,7 +87,7 @@ public:
class MouseScrollEvent : public Event {
public:
//! mouse position when the scroll happened.
- ivec2 mouse_pos = {0, 0};
+ vec2 mouse_pos = {0, 0};
//! scroll direction (-1 = down, 1 = up)
int scroll_direction = 0;
//! scroll amount in y axis (from and away from the person).