aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-04 20:12:34 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-04 20:12:34 +0100
commit6454975779acb39d7d546e11855a07a952e68e5b (patch)
tree3c13741ebbeb36f4df85654b232dcfbce8c66e4b /src/crepe/facade/SDLContext.cpp
parentb0a7296eb4319d123c88b34f162c28d0717c98e4 (diff)
loeks feedback changes
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index a657373..aba7ce7 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -393,7 +393,8 @@ std::vector<SDLContext::EventData> SDLContext::get_events() {
event_list.push_back(EventData{
.event_type = SDLContext::EventType::MOUSEWHEEL,
.mouse_position = {event.motion.x, event.motion.y},
- .wheel_delta = event.wheel.y,
+ .scroll_direction = event.wheel.direction,
+ .scroll_delta = event.wheel.preciseY,
});
} break;
}