forked from mirrors/qmk_userspace
Align TO() max layers with other keycodes (#17989)
This commit is contained in:
parent
ac31e42974
commit
ba04ecfabd
3 changed files with 6 additions and 14 deletions
|
@ -797,15 +797,8 @@ enum quantum_keycodes {
|
|||
#define EH_LEFT MAGIC_EE_HANDS_LEFT
|
||||
#define EH_RGHT MAGIC_EE_HANDS_RIGHT
|
||||
|
||||
// GOTO layer - 16 layers max
|
||||
// when:
|
||||
// ON_PRESS = 1
|
||||
// ON_RELEASE = 2
|
||||
// Unless you have a good reason not to do so, prefer ON_PRESS (1) as your default.
|
||||
// In fact, we changed it to assume ON_PRESS for sanity/simplicity. If needed, you can add your own
|
||||
// keycode modeled after the old version, kept below for this.
|
||||
/* #define TO(layer, when) (QK_TO | (when << 0x4) | (layer & 0xFF)) */
|
||||
#define TO(layer) (QK_TO | (ON_PRESS << 0x4) | ((layer)&0xFF))
|
||||
// GOTO layer - 256 layer max
|
||||
#define TO(layer) (QK_TO | ((layer)&0xFF))
|
||||
|
||||
// Momentary switch layer - 256 layer max
|
||||
#define MO(layer) (QK_MOMENTARY | ((layer)&0xFF))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue