diff options
Diffstat (limited to 'common/action_code.h')
| -rw-r--r-- | common/action_code.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/action_code.h b/common/action_code.h index 45e974a66..c153838f2 100644 --- a/common/action_code.h +++ b/common/action_code.h | |||
| @@ -29,13 +29,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 29 | * 000r|0000|0000 0001 Transparent code | 29 | * 000r|0000|0000 0001 Transparent code |
| 30 | * 000r|0000| keycode Key | 30 | * 000r|0000| keycode Key |
| 31 | * 000r|mods|0000 0000 Modifiers | 31 | * 000r|mods|0000 0000 Modifiers |
| 32 | * 000r|mods| keycode Key and Modifiers | 32 | * 000r|mods| keycode Modifiers+Key(Modified key) |
| 33 | * r: Left/Right flag(Left:0, Right:1) | 33 | * r: Left/Right flag(Left:0, Right:1) |
| 34 | * | 34 | * |
| 35 | * ACT_MODS_TAP(001r): | 35 | * ACT_MODS_TAP(001r): |
| 36 | * 001r|mods|0000 0000 Modifiers with OneShot | 36 | * 001r|mods|0000 0000 Modifiers with OneShot |
| 37 | * 001r|mods|0000 00xx (reserved) | 37 | * 001r|mods|0000 00xx (reserved) |
| 38 | * 001r|mods| keycode Modifiers with Tap Key | 38 | * 001r|mods| keycode Modifiers with Tap Key(Dual role) |
| 39 | * | 39 | * |
| 40 | * | 40 | * |
| 41 | * Other Keys(01xx) | 41 | * Other Keys(01xx) |
| @@ -69,7 +69,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 69 | * 1001|oopp|BBBB BBBB 8-bit Bitwise Operation??? | 69 | * 1001|oopp|BBBB BBBB 8-bit Bitwise Operation??? |
| 70 | * | 70 | * |
| 71 | * ACT_LAYER_TAP(101x): | 71 | * ACT_LAYER_TAP(101x): |
| 72 | * 101E|LLLL| keycode Invert with tap key | 72 | * 101E|LLLL| keycode On/Off with tap key |
| 73 | * 101E|LLLL|1110 xxxx Reserved(0xE0-EF) | 73 | * 101E|LLLL|1110 xxxx Reserved(0xE0-EF) |
| 74 | * 101E|LLLL|1111 0000 Invert with tap toggle(0xF0) | 74 | * 101E|LLLL|1111 0000 Invert with tap toggle(0xF0) |
| 75 | * 101E|LLLL|1111 0001 On/Off | 75 | * 101E|LLLL|1111 0001 On/Off |
| @@ -207,10 +207,10 @@ enum mods_codes { | |||
| 207 | MODS_ONESHOT = 0x00, | 207 | MODS_ONESHOT = 0x00, |
| 208 | }; | 208 | }; |
| 209 | #define ACTION_KEY(key) ACTION(ACT_MODS, (key)) | 209 | #define ACTION_KEY(key) ACTION(ACT_MODS, (key)) |
| 210 | #define ACTION_MODS(mods) ACTION(ACT_MODS, (mods)<<8 | 0) | 210 | #define ACTION_MODS(mods) ACTION(ACT_MODS, (mods&0x1f)<<8 | 0) |
| 211 | #define ACTION_MODS_KEY(mods, key) ACTION(ACT_MODS, (mods)<<8 | (key)) | 211 | #define ACTION_MODS_KEY(mods, key) ACTION(ACT_MODS, (mods&0x1f)<<8 | (key)) |
| 212 | #define ACTION_MODS_TAP_KEY(mods, key) ACTION(ACT_MODS_TAP, (mods)<<8 | (key)) | 212 | #define ACTION_MODS_TAP_KEY(mods, key) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | (key)) |
| 213 | #define ACTION_MODS_ONESHOT(mods) ACTION(ACT_MODS_TAP, (mods)<<8 | MODS_ONESHOT) | 213 | #define ACTION_MODS_ONESHOT(mods) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | MODS_ONESHOT) |
| 214 | 214 | ||
| 215 | 215 | ||
| 216 | /* | 216 | /* |
