Skip to content

Commit

Permalink
Flip x on Windows to match other platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Feb 25, 2018
1 parent 1f80fb1 commit db15ff7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ void scrollMouse(int x, int y)
mouseScrollInputH.mi.dwFlags = MOUSEEVENTF_HWHEEL;
mouseScrollInputH.mi.time = 0;
mouseScrollInputH.mi.dwExtraInfo = 0;
mouseScrollInputH.mi.mouseData = x;
// Flip x to match other platforms.
mouseScrollInputH.mi.mouseData = -x;

mouseScrollInputV.type = INPUT_MOUSE;
mouseScrollInputV.mi.dx = 0;
Expand Down

0 comments on commit db15ff7

Please sign in to comment.