diff options
author | Damien <Dbroqua@users.noreply.github.com> | 2016-10-13 21:51:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-13 21:51:35 +0200 |
commit | 2098b363eac81298ca51edc06970a767d991c78c (patch) | |
tree | 21efeb402b250ece4c62e39e71eec06d925eaea3 /quantum/keymap.h | |
parent | 811257a0c8a20a7bf5481f745a083f7e7f01342c (diff) | |
parent | 0a9ad8f335f5b5b9d184d9e5e9ece6cda149df7e (diff) |
Merge pull request #9 from jackhumbert/master
Merge from jackhumbert
Diffstat (limited to 'quantum/keymap.h')
-rw-r--r-- | quantum/keymap.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/keymap.h b/quantum/keymap.h index 98ddfd0c53..85c090972d 100644 --- a/quantum/keymap.h +++ b/quantum/keymap.h @@ -191,6 +191,7 @@ enum quantum_keycodes { #define HYPR(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT | QK_LGUI) #define MEH(kc) (kc | QK_LCTL | QK_LSFT | QK_LALT) #define LCAG(kc) (kc | QK_LCTL | QK_LALT | QK_LGUI) +#define ALTG(kc) (kc | QK_RCTL | QK_RALT) #define MOD_HYPR 0xf #define MOD_MEH 0x7 @@ -295,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) |