diff options
| author | Erez Zukerman <ezuk@madmimi.com> | 2015-11-10 04:18:44 +0200 |
|---|---|---|
| committer | Erez Zukerman <ezuk@madmimi.com> | 2015-11-10 04:18:44 +0200 |
| commit | 407f41cd9a91f8a7b3d28383872b71376e87898c (patch) | |
| tree | b7dda9a85371fc06fbe4871d97697c787334dfd4 /quantum/keymap_common.h | |
| parent | f5ec585ed821bd791a3080439937b0030d858a8a (diff) | |
| download | qmk_firmware-407f41cd9a91f8a7b3d28383872b71376e87898c.tar.gz qmk_firmware-407f41cd9a91f8a7b3d28383872b71376e87898c.zip | |
[Jack & Erez] Adds standalone versions of Hyper and Meh
Diffstat (limited to 'quantum/keymap_common.h')
| -rw-r--r-- | quantum/keymap_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h index e543e7e66..cc46cab66 100644 --- a/quantum/keymap_common.h +++ b/quantum/keymap_common.h | |||
| @@ -194,6 +194,10 @@ extern const uint16_t fn_actions[]; | |||
| 194 | #define MEH_T(kc) MT(0x7, kc) // Meh is a less hyper version of the Hyper key -- doesn't include Win or Cmd, so just alt+shift+ctrl | 194 | #define MEH_T(kc) MT(0x7, kc) // Meh is a less hyper version of the Hyper key -- doesn't include Win or Cmd, so just alt+shift+ctrl |
| 195 | #define ALL_T(kc) MT(0xF, kc) // see http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/ | 195 | #define ALL_T(kc) MT(0xF, kc) // see http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/ |
| 196 | 196 | ||
| 197 | // Dedicated keycode versions for Hyper and Meh, if you want to use them as standalone keys rather than mod-tap | ||
| 198 | #define KC_HYPR HYPR(KC_NO) | ||
| 199 | #define KC_MEH MEH(KC_NO) | ||
| 200 | |||
| 197 | // L-ayer, T-ap - 256 keycode max, 16 layer max | 201 | // L-ayer, T-ap - 256 keycode max, 16 layer max |
| 198 | #define LT(layer, kc) (kc | 0x8000 | ((layer & 0xF) << 8)) | 202 | #define LT(layer, kc) (kc | 0x8000 | ((layer & 0xF) << 8)) |
| 199 | 203 | ||
