We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e3a067 commit 1cf70f1Copy full SHA for 1cf70f1
src/mouse.c
@@ -77,11 +77,11 @@ void moveMouse(MMPoint point)
77
CGPoint mouse = CGEventGetLocation(get);
78
79
// Calculate the deltas.
80
- int64_t deltaX = point.x - mouse.x;
81
- int64_t deltaY = point.y -mouse.y;
+ int64_t deltaX = point.x - mouse.x;
+ int64_t deltaY = point.y - mouse.y;
82
83
- CGEventSetIntegerValueField(move, kCGMouseEventDeltaY, deltaX);
84
- CGEventSetIntegerValueField(move, kCGMouseEventDeltaX, deltaY);
+ CGEventSetIntegerValueField(move, kCGMouseEventDeltaX, deltaX);
+ CGEventSetIntegerValueField(move, kCGMouseEventDeltaY, deltaY);
85
86
CGEventPost(kCGSessionEventTap, move);
87
CFRelease(get);
0 commit comments