Update: update if defined

This commit is contained in:
vcaesar 2025-05-17 12:54:35 -07:00
parent 8d4679db07
commit b731094f61

View File

@ -214,11 +214,8 @@ void scrollMouseXY(int x, int y) {
INPUT mouseScrollInputV;
#endif
/* Direction should only be considered based on the scrollDirection. This Should not interfere. */
/* Set up the OS specific solution */
#if defined(__APPLE__)
CGEventRef event;
event = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitPixel, 2, y, x);
#if defined(IS_MACOSX)
CGEventRef event = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitPixel, 2, y, x);
CGEventPost(kCGHIDEventTap, event);
CFRelease(event);