Skip to content

Commit

Permalink
Commented this code out for now.
Browse files Browse the repository at this point in the history
It doesn’t work on Windows XP. #50.
  • Loading branch information
octalmage committed Oct 4, 2015
1 parent e2d20c8 commit 062be3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,16 @@ void scrollMouse(int scrollMagnitude, MMMouseWheelDirection scrollDirection)
XFlush(display);

#elif defined(IS_WINDOWS)
INPUT mouseScrollInput;
//FIXME: Need to figure out why this code doesn't work on Windows XP.
/*INPUT mouseScrollInput;
mouseScrollInput.type = INPUT_MOUSE;
mouseScrollInput.mi.dx = 0;
mouseScrollInput.mi.dy = 0;
mouseScrollInput.mi.dwFlags = MOUSEEVENTF_WHEEL;
mouseScrollInput.mi.time = 0;
mouseScrollInput.mi.dwExtraInfo = 0;
mouseScrollInput.mi.mouseData = WHEEL_DELTA * scrollDirection * cleanScrollMagnitude;
SendInput(1, &mouseScrollInput, sizeof(mouseScrollInput));
SendInput(1, &mouseScrollInput, sizeof(mouseScrollInput));*/
#endif
}

Expand Down

0 comments on commit 062be3f

Please sign in to comment.