parent
98391605ca
commit
b2979eba23
1 changed files with 2 additions and 2 deletions
|
@ -550,13 +550,13 @@ enum quantum_keycodes {
|
||||||
#define OSL(layer) (layer | QK_ONE_SHOT_LAYER)
|
#define OSL(layer) (layer | QK_ONE_SHOT_LAYER)
|
||||||
|
|
||||||
// One-shot mod
|
// One-shot mod
|
||||||
#define OSM(mod) (mod | QK_ONE_SHOT_MOD)
|
#define OSM(mod) ((mod) | QK_ONE_SHOT_MOD)
|
||||||
|
|
||||||
// Layer tap-toggle
|
// Layer tap-toggle
|
||||||
#define TT(layer) (layer | QK_LAYER_TAP_TOGGLE)
|
#define TT(layer) (layer | QK_LAYER_TAP_TOGGLE)
|
||||||
|
|
||||||
// M-od, T-ap - 256 keycode max
|
// M-od, T-ap - 256 keycode max
|
||||||
#define MT(mod, kc) (kc | QK_MOD_TAP | ((mod & 0x1F) << 8))
|
#define MT(mod, kc) (kc | QK_MOD_TAP | (((mod) & 0x1F) << 8))
|
||||||
|
|
||||||
#define CTL_T(kc) MT(MOD_LCTL, kc)
|
#define CTL_T(kc) MT(MOD_LCTL, kc)
|
||||||
#define LCTL_T(kc) MT(MOD_LCTL, kc)
|
#define LCTL_T(kc) MT(MOD_LCTL, kc)
|
||||||
|
|
Loading…
Reference in a new issue