Skip to content

Commit

Permalink
Fix for #118.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Nov 2, 2015
1 parent 9d5d2e1 commit 570f453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/keypress.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ extern "C"
#endif
#if defined(IS_MACOSX)

enum _MMKeyFlags {
typedef enum {
MOD_NONE = 0,
MOD_META = kCGEventFlagMaskCommand,
MOD_ALT = kCGEventFlagMaskAlternate,
MOD_CONTROL = kCGEventFlagMaskControl,
MOD_SHIFT = kCGEventFlagMaskShift
};

typedef CGEventFlags MMKeyFlags;
} MMKeyFlags;

#elif defined(USE_X11)

Expand Down
5 changes: 2 additions & 3 deletions src/mouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ extern "C"

#include <ApplicationServices/ApplicationServices.h>

enum _MMMouseButton {
typedef enum {
LEFT_BUTTON = kCGMouseButtonLeft,
RIGHT_BUTTON = kCGMouseButtonRight,
CENTER_BUTTON = kCGMouseButtonCenter
};
typedef CGMouseButton MMMouseButton;
} MMMouseButton;

#elif defined(USE_X11)

Expand Down

0 comments on commit 570f453

Please sign in to comment.