summaryrefslogtreecommitdiff
path: root/quantum/quantum_keycodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r--quantum/quantum_keycodes.h329
1 files changed, 157 insertions, 172 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index c8f03fa1ce..7bd270cfd5 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -359,7 +359,7 @@ enum quantum_keycodes {
RGB_MODE_RGBTEST, // 5CD6
// Velocikey
- VLK_TOG, // 5CD7
+ QK_VELOCIKEY_TOGGLE, // 5CD7
// Space Cadet
KC_LSPO, // 5CD8
@@ -431,47 +431,47 @@ enum quantum_keycodes {
DYN_MACRO_PLAY2, // 5D08
// Joystick
- JS_BUTTON0, // 5D09
- JS_BUTTON1, // 5D0A
- JS_BUTTON2, // 5D0B
- JS_BUTTON3, // 5D0C
- JS_BUTTON4, // 5D0D
- JS_BUTTON5, // 5D0E
- JS_BUTTON6, // 5D0F
- JS_BUTTON7, // 5D10
- JS_BUTTON8, // 5D11
- JS_BUTTON9, // 5D12
- JS_BUTTON10, // 5D13
- JS_BUTTON11, // 5D14
- JS_BUTTON12, // 5D15
- JS_BUTTON13, // 5D16
- JS_BUTTON14, // 5D17
- JS_BUTTON15, // 5D18
- JS_BUTTON16, // 5D19
- JS_BUTTON17, // 5D1A
- JS_BUTTON18, // 5D1B
- JS_BUTTON19, // 5D1C
- JS_BUTTON20, // 5D1D
- JS_BUTTON21, // 5D1E
- JS_BUTTON22, // 5D1F
- JS_BUTTON23, // 5D20
- JS_BUTTON24, // 5D21
- JS_BUTTON25, // 5D22
- JS_BUTTON26, // 5D23
- JS_BUTTON27, // 5D24
- JS_BUTTON28, // 5D25
- JS_BUTTON29, // 5D26
- JS_BUTTON30, // 5D27
- JS_BUTTON31, // 5D28
+ QK_JOYSTICK_BUTTON_0, // 5D09
+ QK_JOYSTICK_BUTTON_1, // 5D0A
+ QK_JOYSTICK_BUTTON_2, // 5D0B
+ QK_JOYSTICK_BUTTON_3, // 5D0C
+ QK_JOYSTICK_BUTTON_4, // 5D0D
+ QK_JOYSTICK_BUTTON_5, // 5D0E
+ QK_JOYSTICK_BUTTON_6, // 5D0F
+ QK_JOYSTICK_BUTTON_7, // 5D10
+ QK_JOYSTICK_BUTTON_8, // 5D11
+ QK_JOYSTICK_BUTTON_9, // 5D12
+ QK_JOYSTICK_BUTTON_10, // 5D13
+ QK_JOYSTICK_BUTTON_11, // 5D14
+ QK_JOYSTICK_BUTTON_12, // 5D15
+ QK_JOYSTICK_BUTTON_13, // 5D16
+ QK_JOYSTICK_BUTTON_14, // 5D17
+ QK_JOYSTICK_BUTTON_15, // 5D18
+ QK_JOYSTICK_BUTTON_16, // 5D19
+ QK_JOYSTICK_BUTTON_17, // 5D1A
+ QK_JOYSTICK_BUTTON_18, // 5D1B
+ QK_JOYSTICK_BUTTON_19, // 5D1C
+ QK_JOYSTICK_BUTTON_20, // 5D1D
+ QK_JOYSTICK_BUTTON_21, // 5D1E
+ QK_JOYSTICK_BUTTON_22, // 5D1F
+ QK_JOYSTICK_BUTTON_23, // 5D20
+ QK_JOYSTICK_BUTTON_24, // 5D21
+ QK_JOYSTICK_BUTTON_25, // 5D22
+ QK_JOYSTICK_BUTTON_26, // 5D23
+ QK_JOYSTICK_BUTTON_27, // 5D24
+ QK_JOYSTICK_BUTTON_28, // 5D25
+ QK_JOYSTICK_BUTTON_29, // 5D26
+ QK_JOYSTICK_BUTTON_30, // 5D27
+ QK_JOYSTICK_BUTTON_31, // 5D28
// Leader Key
- KC_LEAD, // 5D29
+ QK_LEADER, // 5D29
// Bluetooth: output selection (continued)
OUT_BT, // 5D2A
// Lock Key
- KC_LOCK, // 5D2B
+ QK_LOCK, // 5D2B
// Unused slots
UNUSED_000, // 5D2C
@@ -526,38 +526,38 @@ enum quantum_keycodes {
DT_DOWN,
// Programmable Button
- PROGRAMMABLE_BUTTON_1,
- PROGRAMMABLE_BUTTON_2,
- PROGRAMMABLE_BUTTON_3,
- PROGRAMMABLE_BUTTON_4,
- PROGRAMMABLE_BUTTON_5,
- PROGRAMMABLE_BUTTON_6,
- PROGRAMMABLE_BUTTON_7,
- PROGRAMMABLE_BUTTON_8,
- PROGRAMMABLE_BUTTON_9,
- PROGRAMMABLE_BUTTON_10,
- PROGRAMMABLE_BUTTON_11,
- PROGRAMMABLE_BUTTON_12,
- PROGRAMMABLE_BUTTON_13,
- PROGRAMMABLE_BUTTON_14,
- PROGRAMMABLE_BUTTON_15,
- PROGRAMMABLE_BUTTON_16,
- PROGRAMMABLE_BUTTON_17,
- PROGRAMMABLE_BUTTON_18,
- PROGRAMMABLE_BUTTON_19,
- PROGRAMMABLE_BUTTON_20,
- PROGRAMMABLE_BUTTON_21,
- PROGRAMMABLE_BUTTON_22,
- PROGRAMMABLE_BUTTON_23,
- PROGRAMMABLE_BUTTON_24,
- PROGRAMMABLE_BUTTON_25,
- PROGRAMMABLE_BUTTON_26,
- PROGRAMMABLE_BUTTON_27,
- PROGRAMMABLE_BUTTON_28,
- PROGRAMMABLE_BUTTON_29,
- PROGRAMMABLE_BUTTON_30,
- PROGRAMMABLE_BUTTON_31,
- PROGRAMMABLE_BUTTON_32,
+ QK_PROGRAMMABLE_BUTTON_1,
+ QK_PROGRAMMABLE_BUTTON_2,
+ QK_PROGRAMMABLE_BUTTON_3,
+ QK_PROGRAMMABLE_BUTTON_4,
+ QK_PROGRAMMABLE_BUTTON_5,
+ QK_PROGRAMMABLE_BUTTON_6,
+ QK_PROGRAMMABLE_BUTTON_7,
+ QK_PROGRAMMABLE_BUTTON_8,
+ QK_PROGRAMMABLE_BUTTON_9,
+ QK_PROGRAMMABLE_BUTTON_10,
+ QK_PROGRAMMABLE_BUTTON_11,
+ QK_PROGRAMMABLE_BUTTON_12,
+ QK_PROGRAMMABLE_BUTTON_13,
+ QK_PROGRAMMABLE_BUTTON_14,
+ QK_PROGRAMMABLE_BUTTON_15,
+ QK_PROGRAMMABLE_BUTTON_16,
+ QK_PROGRAMMABLE_BUTTON_17,
+ QK_PROGRAMMABLE_BUTTON_18,
+ QK_PROGRAMMABLE_BUTTON_19,
+ QK_PROGRAMMABLE_BUTTON_20,
+ QK_PROGRAMMABLE_BUTTON_21,
+ QK_PROGRAMMABLE_BUTTON_22,
+ QK_PROGRAMMABLE_BUTTON_23,
+ QK_PROGRAMMABLE_BUTTON_24,
+ QK_PROGRAMMABLE_BUTTON_25,
+ QK_PROGRAMMABLE_BUTTON_26,
+ QK_PROGRAMMABLE_BUTTON_27,
+ QK_PROGRAMMABLE_BUTTON_28,
+ QK_PROGRAMMABLE_BUTTON_29,
+ QK_PROGRAMMABLE_BUTTON_30,
+ QK_PROGRAMMABLE_BUTTON_31,
+ QK_PROGRAMMABLE_BUTTON_32,
// Dedicated macro keys for Configurator and VIA
MACRO_0,
@@ -603,7 +603,7 @@ enum quantum_keycodes {
SECURE_TOGGLE,
SECURE_REQUEST,
- CAPS_WORD,
+ QK_CAPS_WORD_TOGGLE,
MAGIC_SWAP_ESCAPE_CAPSLOCK,
MAGIC_UNSWAP_ESCAPE_CAPSLOCK,
@@ -611,6 +611,12 @@ enum quantum_keycodes {
UNICODE_MODE_EMACS,
+ AUTOCORRECT_ON,
+ AUTOCORRECT_OFF,
+ AUTOCORRECT_TOGGLE,
+
+ MAGIC_TOGGLE_BACKSLASH_BACKSPACE,
+
// Start of custom keycode range for keyboards and keymaps - always leave at the end
SAFE_RANGE
};
@@ -652,67 +658,7 @@ enum quantum_keycodes {
#define MOD_MEH 0x7
// US ANSI shifted keycode aliases
-#define KC_TILDE LSFT(KC_GRAVE) // ~
-#define KC_TILD KC_TILDE
-
-#define KC_EXCLAIM LSFT(KC_1) // !
-#define KC_EXLM KC_EXCLAIM
-
-#define KC_AT LSFT(KC_2) // @
-
-#define KC_HASH LSFT(KC_3) // #
-
-#define KC_DOLLAR LSFT(KC_4) // $
-#define KC_DLR KC_DOLLAR
-
-#define KC_PERCENT LSFT(KC_5) // %
-#define KC_PERC KC_PERCENT
-
-#define KC_CIRCUMFLEX LSFT(KC_6) // ^
-#define KC_CIRC KC_CIRCUMFLEX
-
-#define KC_AMPERSAND LSFT(KC_7) // &
-#define KC_AMPR KC_AMPERSAND
-
-#define KC_ASTERISK LSFT(KC_8) // *
-#define KC_ASTR KC_ASTERISK
-
-#define KC_LEFT_PAREN LSFT(KC_9) // (
-#define KC_LPRN KC_LEFT_PAREN
-
-#define KC_RIGHT_PAREN LSFT(KC_0) // )
-#define KC_RPRN KC_RIGHT_PAREN
-
-#define KC_UNDERSCORE LSFT(KC_MINUS) // _
-#define KC_UNDS KC_UNDERSCORE
-
-#define KC_PLUS LSFT(KC_EQUAL) // +
-
-#define KC_LEFT_CURLY_BRACE LSFT(KC_LEFT_BRACKET) // {
-#define KC_LCBR KC_LEFT_CURLY_BRACE
-
-#define KC_RIGHT_CURLY_BRACE LSFT(KC_RIGHT_BRACKET) // }
-#define KC_RCBR KC_RIGHT_CURLY_BRACE
-
-#define KC_LEFT_ANGLE_BRACKET LSFT(KC_COMMA) // <
-#define KC_LABK KC_LEFT_ANGLE_BRACKET
-#define KC_LT KC_LEFT_ANGLE_BRACKET
-
-#define KC_RIGHT_ANGLE_BRACKET LSFT(KC_DOT) // >
-#define KC_RABK KC_RIGHT_ANGLE_BRACKET
-#define KC_GT KC_RIGHT_ANGLE_BRACKET
-
-#define KC_COLON LSFT(KC_SEMICOLON) // :
-#define KC_COLN KC_COLON
-
-#define KC_PIPE LSFT(KC_BACKSLASH) // |
-
-#define KC_QUESTION LSFT(KC_SLASH) // ?
-#define KC_QUES KC_QUESTION
-
-#define KC_DOUBLE_QUOTE LSFT(KC_QUOTE) // "
-#define KC_DQUO KC_DOUBLE_QUOTE
-#define KC_DQT KC_DOUBLE_QUOTE
+#include "keymap_us.h"
#define KC_DELT KC_DELETE // Del key (four letter code)
@@ -736,10 +682,6 @@ enum quantum_keycodes {
#define CK_DOWN CLICKY_DOWN
#define CK_ON CLICKY_ENABLE
#define CK_OFF CLICKY_DISABLE
-// Fauxclicky (deprecated) redirects to Audio Clicky
-#define FC_ON CLICKY_ENABLE
-#define FC_OFF CLICKY_DISABLE
-#define FC_TOGG CLICKY_TOGGLE
// RGB aliases
#define RGB_MOD RGB_MODE_FORWARD
@@ -791,6 +733,7 @@ enum quantum_keycodes {
#define BS_SWAP MAGIC_SWAP_BACKSLASH_BACKSPACE
#define BS_NORM MAGIC_UNSWAP_BACKSLASH_BACKSPACE
+#define BS_TOGG MAGIC_TOGGLE_BACKSLASH_BACKSPACE
#define NK_ON MAGIC_HOST_NKRO
#define NK_OFF MAGIC_UNHOST_NKRO
@@ -799,6 +742,13 @@ enum quantum_keycodes {
#define EH_LEFT MAGIC_EE_HANDS_LEFT
#define EH_RGHT MAGIC_EE_HANDS_RIGHT
+#define CRT_ON AUTOCORRECT_ON
+#define CRT_OFF AUTOCORRECT_OFF
+#define CRT_TOG AUTOCORRECT_TOGGLE
+
+// Velocikey
+#define VK_TOGG QK_VELOCIKEY_TOGGLE
+
// GOTO layer - 256 layer max
#define TO(layer) (QK_TO | ((layer)&0xFF))
@@ -890,14 +840,18 @@ enum quantum_keycodes {
#define UC_RMOD UNICODE_MODE_REVERSE
#define UC_M_MA UNICODE_MODE_MAC
-#define UNICODE_MODE_OSX UNICODE_MODE_MAC // Deprecated alias
-#define UC_M_OS UNICODE_MODE_MAC // Deprecated alias
#define UC_M_LN UNICODE_MODE_LNX
#define UC_M_WI UNICODE_MODE_WIN
#define UC_M_BS UNICODE_MODE_BSD
#define UC_M_WC UNICODE_MODE_WINC
#define UC_M_EM UNICODE_MODE_EMACS
+// Leader key
+#define QK_LEAD QK_LEADER
+
+// Caps Word
+#define CW_TOGG QK_CAPS_WORD_TOGGLE
+
// Swap Hands
#define SH_T(kc) (QK_SWAP_HANDS | (kc))
#define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE)
@@ -928,8 +882,40 @@ enum quantum_keycodes {
#define DM_PLY2 DYN_MACRO_PLAY2
// Joystick aliases
-#define JS_BUTTON_MIN JS_BUTTON0
-#define JS_BUTTON_MAX JS_BUTTON31
+#define JS_0 QK_JOYSTICK_BUTTON_0
+#define JS_1 QK_JOYSTICK_BUTTON_1
+#define JS_2 QK_JOYSTICK_BUTTON_2
+#define JS_3 QK_JOYSTICK_BUTTON_3
+#define JS_4 QK_JOYSTICK_BUTTON_4
+#define JS_5 QK_JOYSTICK_BUTTON_5
+#define JS_6 QK_JOYSTICK_BUTTON_6
+#define JS_7 QK_JOYSTICK_BUTTON_7
+#define JS_8 QK_JOYSTICK_BUTTON_8
+#define JS_9 QK_JOYSTICK_BUTTON_9
+#define JS_10 QK_JOYSTICK_BUTTON_10
+#define JS_11 QK_JOYSTICK_BUTTON_11
+#define JS_12 QK_JOYSTICK_BUTTON_12
+#define JS_13 QK_JOYSTICK_BUTTON_13
+#define JS_14 QK_JOYSTICK_BUTTON_14
+#define JS_15 QK_JOYSTICK_BUTTON_15
+#define JS_16 QK_JOYSTICK_BUTTON_16
+#define JS_17 QK_JOYSTICK_BUTTON_17
+#define JS_18 QK_JOYSTICK_BUTTON_18
+#define JS_19 QK_JOYSTICK_BUTTON_19
+#define JS_20 QK_JOYSTICK_BUTTON_20
+#define JS_21 QK_JOYSTICK_BUTTON_21
+#define JS_22 QK_JOYSTICK_BUTTON_22
+#define JS_23 QK_JOYSTICK_BUTTON_23
+#define JS_24 QK_JOYSTICK_BUTTON_24
+#define JS_25 QK_JOYSTICK_BUTTON_25
+#define JS_26 QK_JOYSTICK_BUTTON_26
+#define JS_27 QK_JOYSTICK_BUTTON_27
+#define JS_28 QK_JOYSTICK_BUTTON_28
+#define JS_29 QK_JOYSTICK_BUTTON_29
+#define JS_30 QK_JOYSTICK_BUTTON_30
+#define JS_31 QK_JOYSTICK_BUTTON_31
+#define QK_JOYSTICK_BUTTON_MIN QK_JOYSTICK_BUTTON_0
+#define QK_JOYSTICK_BUTTON_MAX QK_JOYSTICK_BUTTON_31
// One Shot aliases
#define OS_TOGG ONESHOT_TOGGLE
@@ -937,40 +923,39 @@ enum quantum_keycodes {
#define OS_OFF ONESHOT_DISABLE
// Programmable Button aliases
-#define PB_1 PROGRAMMABLE_BUTTON_1
-#define PB_2 PROGRAMMABLE_BUTTON_2
-#define PB_3 PROGRAMMABLE_BUTTON_3
-#define PB_4 PROGRAMMABLE_BUTTON_4
-#define PB_5 PROGRAMMABLE_BUTTON_5
-#define PB_6 PROGRAMMABLE_BUTTON_6
-#define PB_7 PROGRAMMABLE_BUTTON_7
-#define PB_8 PROGRAMMABLE_BUTTON_8
-#define PB_9 PROGRAMMABLE_BUTTON_9
-#define PB_10 PROGRAMMABLE_BUTTON_10
-#define PB_11 PROGRAMMABLE_BUTTON_11
-#define PB_12 PROGRAMMABLE_BUTTON_12
-#define PB_13 PROGRAMMABLE_BUTTON_13
-#define PB_14 PROGRAMMABLE_BUTTON_14
-#define PB_15 PROGRAMMABLE_BUTTON_15
-#define PB_16 PROGRAMMABLE_BUTTON_16
-#define PB_17 PROGRAMMABLE_BUTTON_17
-#define PB_18 PROGRAMMABLE_BUTTON_18
-#define PB_19 PROGRAMMABLE_BUTTON_19
-#define PB_20 PROGRAMMABLE_BUTTON_20
-#define PB_21 PROGRAMMABLE_BUTTON_21
-#define PB_22 PROGRAMMABLE_BUTTON_22
-#define PB_23 PROGRAMMABLE_BUTTON_23
-#define PB_24 PROGRAMMABLE_BUTTON_24
-#define PB_25 PROGRAMMABLE_BUTTON_25
-#define PB_26 PROGRAMMABLE_BUTTON_26
-#define PB_27 PROGRAMMABLE_BUTTON_27
-#define PB_28 PROGRAMMABLE_BUTTON_28
-#define PB_29 PROGRAMMABLE_BUTTON_29
-#define PB_30 PROGRAMMABLE_BUTTON_30
-#define PB_31 PROGRAMMABLE_BUTTON_31
-#define PB_32 PROGRAMMABLE_BUTTON_32
-#define PROGRAMMABLE_BUTTON_MIN PROGRAMMABLE_BUTTON_1
-#define PROGRAMMABLE_BUTTON_MAX PROGRAMMABLE_BUTTON_32
-#define CAPSWRD CAPS_WORD
+#define PB_1 QK_PROGRAMMABLE_BUTTON_1
+#define PB_2 QK_PROGRAMMABLE_BUTTON_2
+#define PB_3 QK_PROGRAMMABLE_BUTTON_3
+#define PB_4 QK_PROGRAMMABLE_BUTTON_4
+#define PB_5 QK_PROGRAMMABLE_BUTTON_5
+#define PB_6 QK_PROGRAMMABLE_BUTTON_6
+#define PB_7 QK_PROGRAMMABLE_BUTTON_7
+#define PB_8 QK_PROGRAMMABLE_BUTTON_8
+#define PB_9 QK_PROGRAMMABLE_BUTTON_9
+#define PB_10 QK_PROGRAMMABLE_BUTTON_10
+#define PB_11 QK_PROGRAMMABLE_BUTTON_11
+#define PB_12 QK_PROGRAMMABLE_BUTTON_12
+#define PB_13 QK_PROGRAMMABLE_BUTTON_13
+#define PB_14 QK_PROGRAMMABLE_BUTTON_14
+#define PB_15 QK_PROGRAMMABLE_BUTTON_15
+#define PB_16 QK_PROGRAMMABLE_BUTTON_16
+#define PB_17 QK_PROGRAMMABLE_BUTTON_17
+#define PB_18 QK_PROGRAMMABLE_BUTTON_18
+#define PB_19 QK_PROGRAMMABLE_BUTTON_19
+#define PB_20 QK_PROGRAMMABLE_BUTTON_20
+#define PB_21 QK_PROGRAMMABLE_BUTTON_21
+#define PB_22 QK_PROGRAMMABLE_BUTTON_22
+#define PB_23 QK_PROGRAMMABLE_BUTTON_23
+#define PB_24 QK_PROGRAMMABLE_BUTTON_24
+#define PB_25 QK_PROGRAMMABLE_BUTTON_25
+#define PB_26 QK_PROGRAMMABLE_BUTTON_26
+#define PB_27 QK_PROGRAMMABLE_BUTTON_27
+#define PB_28 QK_PROGRAMMABLE_BUTTON_28
+#define PB_29 QK_PROGRAMMABLE_BUTTON_29
+#define PB_30 QK_PROGRAMMABLE_BUTTON_30
+#define PB_31 QK_PROGRAMMABLE_BUTTON_31
+#define PB_32 QK_PROGRAMMABLE_BUTTON_32
+#define QK_PROGRAMMABLE_BUTTON_MIN QK_PROGRAMMABLE_BUTTON_1
+#define QK_PROGRAMMABLE_BUTTON_MAX QK_PROGRAMMABLE_BUTTON_32
#include "quantum_keycodes_legacy.h"