aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index 6371a51..a37392f 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -360,8 +360,8 @@ 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}
+ .mouse_position = {event.motion.x,event.motion.y},
+ .rel_mouse_move = {event.motion.xrel,event.motion.yrel}
});
}
break;