Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Commit

Permalink
Cleanup, removed debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hofmann committed Jun 5, 2019
1 parent 4407d6f commit 7426e5c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,12 @@ void moveMouse(MMPoint point)
CGEventRef evt = NULL;
if (CGEventSourceButtonState (kCGEventSourceStateHIDSystemState, kCGMouseButtonLeft)) {
// Create a left button drag
printf("left button pressed, drag");
evt = CGEventCreateMouseEvent
(src, kCGEventLeftMouseDragged,
position, kCGMouseButtonLeft);
} else {
if (CGEventSourceButtonState (kCGEventSourceStateHIDSystemState, kCGMouseButtonRight)) {
// Create a right button drag
printf("right button pressed, drag");
evt = CGEventCreateMouseEvent
(src, kCGEventRightMouseDragged,
position, kCGMouseButtonLeft);
Expand Down Expand Up @@ -198,8 +196,6 @@ void toggleMouse(bool down, MMMouseButton button)
currentPos,
(CGMouseButton)button);
CGEventPost(kCGHIDEventTap, event);
printf("mouse state left: %d", CGEventSourceButtonState(kCGEventSourceStateHIDSystemState, kCGMouseButtonLeft));
printf("mouse state right: %d", CGEventSourceButtonState(kCGEventSourceStateHIDSystemState, kCGMouseButtonRight));
CFRelease(event);
CFRelease(src);
#elif defined(USE_X11)
Expand Down

0 comments on commit 7426e5c

Please sign in to comment.