haiku: Invert mouse wheel values to match what SDL expects.
authorPeter Kosyh <p.kosyh@gmail.com>
Mon, 11 Nov 2019 21:59:39 -0500
changeset 132317685ed78cd5c
parent 13230 57ed423da32a
child 13232 6058a0286a96
haiku: Invert mouse wheel values to match what SDL expects.

Partially fixes Bugzilla #4442.
src/main/haiku/SDL_BApp.h
     1.1 --- a/src/main/haiku/SDL_BApp.h	Mon Nov 11 16:44:40 2019 -0500
     1.2 +++ b/src/main/haiku/SDL_BApp.h	Mon Nov 11 21:59:39 2019 -0500
     1.3 @@ -261,7 +261,7 @@
     1.4              return;
     1.5          }
     1.6          win = GetSDLWindow(winID);
     1.7 -        SDL_SendMouseWheel(win, 0, xTicks, yTicks, SDL_MOUSEWHEEL_NORMAL);
     1.8 +        SDL_SendMouseWheel(win, 0, xTicks, -yTicks, SDL_MOUSEWHEEL_NORMAL);
     1.9      }
    1.10  
    1.11      void _HandleKey(BMessage *msg) {