diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-05 17:11:09 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-05 17:11:35 +0100 |
commit | 1f4e961d7f9d6887c807cac1a362f2d178b0860b (patch) | |
tree | c786c952924be7cd3cb54d603d512323f8adfbc2 /src/crepe/facade/SDLContext.cpp | |
parent | ea764e4d4c8688953637f4afba96ec2223f5a7c1 (diff) |
nitpick #55
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r-- | src/crepe/facade/SDLContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index 88804ef..ad9f1f0 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}, - .scroll_direction = event.wheel.direction, + // TODO: why is this needed? + .scroll_direction = event.wheel.y < 0 ? -1 : 1, .scroll_delta = event.wheel.preciseY, }); } break; |