Skip to content

Commit

Permalink
IO: fixed natural scrolling, now respects system setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckegg authored and mgerhardy committed Jun 16, 2024
1 parent bf398fb commit 753ca82
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/modules/video/EventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ bool EventHandler::handleEvent(SDL_Event &event) {
}
int x = event.wheel.x;
int y = event.wheel.y;
if (event.wheel.direction == SDL_MOUSEWHEEL_FLIPPED) {
x *= -1;
y *= -1;
}
x = glm::clamp(x, -1, 1);
y = glm::clamp(y, -1, 1);
mouseWheel(x, y);
Expand Down

0 comments on commit 753ca82

Please sign in to comment.