aboutsummaryrefslogtreecommitdiff
path: root/common/action_code.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/action_code.h')
-rw-r--r--common/action_code.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/action_code.h b/common/action_code.h
index c153838f2..bd3652e38 100644
--- a/common/action_code.h
+++ b/common/action_code.h
@@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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 0001 Modifiers with tap toggle
37 * 001r|mods|0000 00xx (reserved) 38 * 001r|mods|0000 00xx (reserved)
38 * 001r|mods| keycode Modifiers with Tap Key(Dual role) 39 * 001r|mods| keycode Modifiers with Tap Key(Dual role)
39 * 40 *
@@ -205,12 +206,14 @@ enum mods_bit {
205}; 206};
206enum mods_codes { 207enum mods_codes {
207 MODS_ONESHOT = 0x00, 208 MODS_ONESHOT = 0x00,
209 MODS_TAP_TOGGLE = 0x01,
208}; 210};
209#define ACTION_KEY(key) ACTION(ACT_MODS, (key)) 211#define ACTION_KEY(key) ACTION(ACT_MODS, (key))
210#define ACTION_MODS(mods) ACTION(ACT_MODS, (mods&0x1f)<<8 | 0) 212#define ACTION_MODS(mods) ACTION(ACT_MODS, (mods&0x1f)<<8 | 0)
211#define ACTION_MODS_KEY(mods, key) ACTION(ACT_MODS, (mods&0x1f)<<8 | (key)) 213#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&0x1f)<<8 | (key)) 214#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&0x1f)<<8 | MODS_ONESHOT) 215#define ACTION_MODS_ONESHOT(mods) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | MODS_ONESHOT)
216#define ACTION_MODS_TAP_TOGGLE(mods) ACTION(ACT_MODS_TAP, (mods&0x1f)<<8 | MODS_TAP_TOGGLE)
214 217
215 218
216/* 219/*