Skip to content

Commit

Permalink
haiku: Invert mouse wheel values to match what SDL expects.
Browse files Browse the repository at this point in the history
Partially fixes Bugzilla #4442.
  • Loading branch information
Peter Kosyh committed Nov 12, 2019
1 parent b22fb9e commit 55b5d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/haiku/SDL_BApp.h
Expand Up @@ -261,7 +261,7 @@ class SDL_BApp : public BApplication {
return;
}
win = GetSDLWindow(winID);
SDL_SendMouseWheel(win, 0, xTicks, yTicks, SDL_MOUSEWHEEL_NORMAL);
SDL_SendMouseWheel(win, 0, xTicks, -yTicks, SDL_MOUSEWHEEL_NORMAL);
}

void _HandleKey(BMessage *msg) {
Expand Down

0 comments on commit 55b5d8d

Please sign in to comment.