Skip to content

Commit b731094

Browse files
committed
Update: update if defined
1 parent 8d4679d commit b731094

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mouse/mouse_c.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,8 @@ void scrollMouseXY(int x, int y) {
214214
INPUT mouseScrollInputV;
215215
#endif
216216

217-
/* Direction should only be considered based on the scrollDirection. This Should not interfere. */
218-
/* Set up the OS specific solution */
219-
#if defined(__APPLE__)
220-
CGEventRef event;
221-
event = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitPixel, 2, y, x);
217+
#if defined(IS_MACOSX)
218+
CGEventRef event = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitPixel, 2, y, x);
222219
CGEventPost(kCGHIDEventTap, event);
223220

224221
CFRelease(event);

0 commit comments

Comments
 (0)