diff options
author | tmk <nobody@nowhere> | 2013-09-11 14:05:05 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-09-11 14:05:05 +0900 |
commit | c7faa51ee843198c1b6a1dfeb0f1842c4e3ea0e6 (patch) | |
tree | cbf1a93ae96f5533b8469cebadb70caf43d0cad1 /common | |
parent | da24259632f79dad8ecc11d887d58a1e36bd5af8 (diff) |
Fix action macros
Diffstat (limited to 'common')
-rw-r--r-- | common/action_code.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/action_code.h b/common/action_code.h index 45e974a668..b2a7f2b4f7 100644 --- a/common/action_code.h +++ b/common/action_code.h @@ -207,10 +207,10 @@ enum mods_codes { MODS_ONESHOT = 0x00, }; #define ACTION_KEY(key) ACTION(ACT_MODS, (key)) -#define ACTION_MODS(mods) ACTION(ACT_MODS, (mods)<<8 | 0) -#define ACTION_MODS_KEY(mods, key) ACTION(ACT_MODS, (mods)<<8 | (key)) -#define ACTION_MODS_TAP_KEY(mods, key) ACTION(ACT_MODS_TAP, (mods)<<8 | (key)) -#define ACTION_MODS_ONESHOT(mods) ACTION(ACT_MODS_TAP, (mods)<<8 | MODS_ONESHOT) +#define ACTION_MODS(mods) ACTION(ACT_MODS, (mods&0x1f)<<8 | 0) +#define ACTION_MODS_KEY(mods, key) ACTION(ACT_MODS, (mods&0x1f)<<8 | (key)) +#define ACTION_MODS_TAP_KEY(mods, key) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | (key)) +#define ACTION_MODS_ONESHOT(mods) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | MODS_ONESHOT) /* |