aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-25 11:17:20 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-25 11:17:20 +0100
commit596358ffea72aec48b389609349f717e76396ae2 (patch)
tree4c023d4797f18c5b240765b5fef07fc793f52f42 /src/crepe/facade/SDLContext.cpp
parent327154fd428e0798eea544d9f073f8e1293aa158 (diff)
button test working
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index f87cc61..6371a51 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -361,6 +361,7 @@ std::vector<SDLContext::EventData> SDLContext::get_events(){
event_list.push_back(EventData{
.event_type = SDLContext::Event::MOUSEMOVE,
.mouse_position = {event.button.x,event.button.y},
+ .rel_mouse_move = {event.motion.yrel,event.motion.xrel}
});
}
break;
@@ -371,7 +372,6 @@ std::vector<SDLContext::EventData> SDLContext::get_events(){
.event_type = SDLContext::Event::MOUSEWHEEL,
.mouse_position = {event.motion.x,event.motion.y},
.wheel_delta = event.wheel.y,
- .rel_mouse_move = {event.motion.yrel,event.motion.xrel},
});
}
break;