diff options
author | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-10-13 13:05:33 -0400 |
---|---|---|
committer | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-10-13 13:05:33 -0400 |
commit | f74c560be853a5d6c563c73096c0d12fbfb31b6a (patch) | |
tree | 4bd39b67a0900934d60fce4991d30dd43f4d986b /quantum/keymap.h | |
parent | 99ca59baf8d508f3221df5dd89158241925aca14 (diff) | |
parent | 0a9ad8f335f5b5b9d184d9e5e9ece6cda149df7e (diff) |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'quantum/keymap.h')
-rw-r--r-- | quantum/keymap.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/quantum/keymap.h b/quantum/keymap.h index 4b2192cb2e..85c090972d 100644 --- a/quantum/keymap.h +++ b/quantum/keymap.h @@ -296,7 +296,10 @@ enum quantum_keycodes { // ON_PRESS = 1 // ON_RELEASE = 2 // Unless you have a good reason not to do so, prefer ON_PRESS (1) as your default. -#define TO(layer, when) (layer | QK_TO | (when << 0x4)) +// 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) (layer | QK_TO | (when << 0x4)) */ +#define TO(layer) (layer | QK_TO | (ON_PRESS << 0x4)) // Momentary switch layer - 256 layer max #define MO(layer) (layer | QK_MOMENTARY) |