We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fd31a8 commit e3f084eCopy full SHA for e3f084e
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