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; INPUT mouseScrollInputV;
#endif #endif
/* Direction should only be considered based on the scrollDirection. This Should not interfere. */ #if defined(IS_MACOSX)
/* Set up the OS specific solution */ CGEventRef event = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitPixel, 2, y, x);
#if defined(__APPLE__)
CGEventRef event;
event = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitPixel, 2, y, x);
CGEventPost(kCGHIDEventTap, event); CGEventPost(kCGHIDEventTap, event);
CFRelease(event); CFRelease(event);