Skip to content

Commit 062be3f

Browse files
committed
Commented this code out for now.
It doesn’t work on Windows XP. #50.
1 parent e2d20c8 commit 062be3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mouse.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,16 @@ void scrollMouse(int scrollMagnitude, MMMouseWheelDirection scrollDirection)
217217
XFlush(display);
218218

219219
#elif defined(IS_WINDOWS)
220-
INPUT mouseScrollInput;
220+
//FIXME: Need to figure out why this code doesn't work on Windows XP.
221+
/*INPUT mouseScrollInput;
221222
mouseScrollInput.type = INPUT_MOUSE;
222223
mouseScrollInput.mi.dx = 0;
223224
mouseScrollInput.mi.dy = 0;
224225
mouseScrollInput.mi.dwFlags = MOUSEEVENTF_WHEEL;
225226
mouseScrollInput.mi.time = 0;
226227
mouseScrollInput.mi.dwExtraInfo = 0;
227228
mouseScrollInput.mi.mouseData = WHEEL_DELTA * scrollDirection * cleanScrollMagnitude;
228-
SendInput(1, &mouseScrollInput, sizeof(mouseScrollInput));
229+
SendInput(1, &mouseScrollInput, sizeof(mouseScrollInput));*/
229230
#endif
230231
}
231232

0 commit comments

Comments
 (0)