Browse Source

haiku: Invert mouse wheel values to match what SDL expects.

Partially fixes Bugzilla #4442.
Peter Kosyh 5 years ago
parent
commit
55b5d8dce6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/haiku/SDL_BApp.h

+ 1 - 1
src/main/haiku/SDL_BApp.h

@@ -261,7 +261,7 @@ private:
             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) {