mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Update: update if defined
This commit is contained in:
parent
8d4679db07
commit
b731094f61
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user