Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surround macro replacement list with parentheses #201

Open
wants to merge 1 commit into
base: 1.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions include/uiohook.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,17 @@ typedef void (*dispatcher_t)(uiohook_event *const);
#define VC_KP_9 0x0049
#define VC_KP_0 0x0052

#define VC_KP_END 0xEE00 | VC_KP_1
#define VC_KP_DOWN 0xEE00 | VC_KP_2
#define VC_KP_PAGE_DOWN 0xEE00 | VC_KP_3
#define VC_KP_LEFT 0xEE00 | VC_KP_4
#define VC_KP_CLEAR 0xEE00 | VC_KP_5
#define VC_KP_RIGHT 0xEE00 | VC_KP_6
#define VC_KP_HOME 0xEE00 | VC_KP_7
#define VC_KP_UP 0xEE00 | VC_KP_8
#define VC_KP_PAGE_UP 0xEE00 | VC_KP_9
#define VC_KP_INSERT 0xEE00 | VC_KP_0
#define VC_KP_DELETE 0xEE00 | VC_KP_SEPARATOR
#define VC_KP_END (0xEE00 | VC_KP_1)
#define VC_KP_DOWN (0xEE00 | VC_KP_2)
#define VC_KP_PAGE_DOWN (0xEE00 | VC_KP_3)
#define VC_KP_LEFT (0xEE00 | VC_KP_4)
#define VC_KP_CLEAR (0xEE00 | VC_KP_5)
#define VC_KP_RIGHT (0xEE00 | VC_KP_6)
#define VC_KP_HOME (0xEE00 | VC_KP_7)
#define VC_KP_UP (0xEE00 | VC_KP_8)
#define VC_KP_PAGE_UP (0xEE00 | VC_KP_9)
#define VC_KP_INSERT (0xEE00 | VC_KP_0)
#define VC_KP_DELETE (0xEE00 | VC_KP_SEPARATOR)
// End Numeric Zone


Expand Down Expand Up @@ -361,30 +361,30 @@ typedef void (*dispatcher_t)(uiohook_event *const);


/* Begin Virtual Modifier Masks */
#define MASK_SHIFT_L 1 << 0
#define MASK_CTRL_L 1 << 1
#define MASK_META_L 1 << 2
#define MASK_ALT_L 1 << 3

#define MASK_SHIFT_R 1 << 4
#define MASK_CTRL_R 1 << 5
#define MASK_META_R 1 << 6
#define MASK_ALT_R 1 << 7

#define MASK_SHIFT MASK_SHIFT_L | MASK_SHIFT_R
#define MASK_CTRL MASK_CTRL_L | MASK_CTRL_R
#define MASK_META MASK_META_L | MASK_META_R
#define MASK_ALT MASK_ALT_L | MASK_ALT_R

#define MASK_BUTTON1 1 << 8
#define MASK_BUTTON2 1 << 9
#define MASK_BUTTON3 1 << 10
#define MASK_BUTTON4 1 << 11
#define MASK_BUTTON5 1 << 12

#define MASK_NUM_LOCK 1 << 13
#define MASK_CAPS_LOCK 1 << 14
#define MASK_SCROLL_LOCK 1 << 15
#define MASK_SHIFT_L (1 << 0)
#define MASK_CTRL_L (1 << 1)
#define MASK_META_L (1 << 2)
#define MASK_ALT_L (1 << 3)

#define MASK_SHIFT_R (1 << 4)
#define MASK_CTRL_R (1 << 5)
#define MASK_META_R (1 << 6)
#define MASK_ALT_R (1 << 7)

#define MASK_SHIFT (MASK_SHIFT_L | MASK_SHIFT_R)
#define MASK_CTRL (MASK_CTRL_L | MASK_CTRL_R)
#define MASK_META (MASK_META_L | MASK_META_R)
#define MASK_ALT (MASK_ALT_L | MASK_ALT_R)

#define MASK_BUTTON1 (1 << 8)
#define MASK_BUTTON2 (1 << 9)
#define MASK_BUTTON3 (1 << 10)
#define MASK_BUTTON4 (1 << 11)
#define MASK_BUTTON5 (1 << 12)

#define MASK_NUM_LOCK (1 << 13)
#define MASK_CAPS_LOCK (1 << 14)
#define MASK_SCROLL_LOCK (1 << 15)
/* End Virtual Modifier Masks */


Expand Down