summaryrefslogtreecommitdiffstats
path: root/quantum/keycodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/keycodes.h')
-rw-r--r--quantum/keycodes.h323
1 files changed, 170 insertions, 153 deletions
diff --git a/quantum/keycodes.h b/quantum/keycodes.h
index c013858e78..73b86ce9b9 100644
--- a/quantum/keycodes.h
+++ b/quantum/keycodes.h
@@ -1,4 +1,4 @@
-// Copyright 2022 QMK
+// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
/*******************************************************************************
@@ -82,6 +82,10 @@ enum qk_keycode_ranges {
QK_USER_MAX = 0x7FFF,
QK_UNICODE = 0x8000,
QK_UNICODE_MAX = 0xFFFF,
+ QK_UNICODEMAP = 0x8000,
+ QK_UNICODEMAP_MAX = 0xBFFF,
+ QK_UNICODEMAP_PAIR = 0xC000,
+ QK_UNICODEMAP_PAIR_MAX = 0xFFFF,
};
enum qk_keycode_defines {
@@ -304,13 +308,13 @@ enum qk_keycode_defines {
KC_RIGHT_SHIFT = 0x00E5,
KC_RIGHT_ALT = 0x00E6,
KC_RIGHT_GUI = 0x00E7,
- SH_TG = 0x56F0,
- SH_TT = 0x56F1,
- SH_MON = 0x56F2,
- SH_MOFF = 0x56F3,
- SH_OFF = 0x56F4,
- SH_ON = 0x56F5,
- SH_OS = 0x56F6,
+ QK_SWAP_HANDS_TOGGLE = 0x56F0,
+ QK_SWAP_HANDS_TAP_TOGGLE = 0x56F1,
+ QK_SWAP_HANDS_MOMENTARY_ON = 0x56F2,
+ QK_SWAP_HANDS_MOMENTARY_OFF = 0x56F3,
+ QK_SWAP_HANDS_OFF = 0x56F4,
+ QK_SWAP_HANDS_ON = 0x56F5,
+ QK_SWAP_HANDS_ONE_SHOT = 0x56F6,
MAGIC_SWAP_CONTROL_CAPSLOCK = 0x7000,
MAGIC_UNSWAP_CONTROL_CAPSLOCK = 0x7001,
MAGIC_TOGGLE_CONTROL_CAPSLOCK = 0x7002,
@@ -349,147 +353,147 @@ enum qk_keycode_defines {
QK_MIDI_ON = 0x7100,
QK_MIDI_OFF = 0x7101,
QK_MIDI_TOGGLE = 0x7102,
- QK_MIDI_NOTE_C_0 = 0x7110,
- QK_MIDI_NOTE_C_SHARP_0 = 0x7111,
- QK_MIDI_NOTE_D_0 = 0x7112,
- QK_MIDI_NOTE_D_SHARP_0 = 0x7113,
- QK_MIDI_NOTE_E_0 = 0x7114,
- QK_MIDI_NOTE_F_0 = 0x7115,
- QK_MIDI_NOTE_F_SHARP_0 = 0x7116,
- QK_MIDI_NOTE_G_0 = 0x7117,
- QK_MIDI_NOTE_G_SHARP_0 = 0x7118,
- QK_MIDI_NOTE_A_0 = 0x7119,
- QK_MIDI_NOTE_A_SHARP_0 = 0x711A,
- QK_MIDI_NOTE_B_0 = 0x711B,
- QK_MIDI_NOTE_C_1 = 0x7120,
- QK_MIDI_NOTE_C_SHARP_1 = 0x7121,
- QK_MIDI_NOTE_D_1 = 0x7122,
- QK_MIDI_NOTE_D_SHARP_1 = 0x7123,
- QK_MIDI_NOTE_E_1 = 0x7124,
- QK_MIDI_NOTE_F_1 = 0x7125,
- QK_MIDI_NOTE_F_SHARP_1 = 0x7126,
- QK_MIDI_NOTE_G_1 = 0x7127,
- QK_MIDI_NOTE_G_SHARP_1 = 0x7128,
- QK_MIDI_NOTE_A_1 = 0x7129,
- QK_MIDI_NOTE_A_SHARP_1 = 0x712A,
- QK_MIDI_NOTE_B_1 = 0x712B,
- QK_MIDI_NOTE_C_2 = 0x7130,
- QK_MIDI_NOTE_C_SHARP_2 = 0x7131,
- QK_MIDI_NOTE_D_2 = 0x7132,
- QK_MIDI_NOTE_D_SHARP_2 = 0x7133,
- QK_MIDI_NOTE_E_2 = 0x7134,
- QK_MIDI_NOTE_F_2 = 0x7135,
- QK_MIDI_NOTE_F_SHARP_2 = 0x7136,
- QK_MIDI_NOTE_G_2 = 0x7137,
- QK_MIDI_NOTE_G_SHARP_2 = 0x7138,
- QK_MIDI_NOTE_A_2 = 0x7139,
- QK_MIDI_NOTE_A_SHARP_2 = 0x713A,
- QK_MIDI_NOTE_B_2 = 0x713B,
- QK_MIDI_NOTE_C_3 = 0x7140,
- QK_MIDI_NOTE_C_SHARP_3 = 0x7141,
- QK_MIDI_NOTE_D_3 = 0x7142,
- QK_MIDI_NOTE_D_SHARP_3 = 0x7143,
- QK_MIDI_NOTE_E_3 = 0x7144,
- QK_MIDI_NOTE_F_3 = 0x7145,
- QK_MIDI_NOTE_F_SHARP_3 = 0x7146,
- QK_MIDI_NOTE_G_3 = 0x7147,
- QK_MIDI_NOTE_G_SHARP_3 = 0x7148,
- QK_MIDI_NOTE_A_3 = 0x7149,
- QK_MIDI_NOTE_A_SHARP_3 = 0x714A,
- QK_MIDI_NOTE_B_3 = 0x714B,
- QK_MIDI_NOTE_C_4 = 0x7150,
- QK_MIDI_NOTE_C_SHARP_4 = 0x7151,
- QK_MIDI_NOTE_D_4 = 0x7152,
- QK_MIDI_NOTE_D_SHARP_4 = 0x7153,
- QK_MIDI_NOTE_E_4 = 0x7154,
- QK_MIDI_NOTE_F_4 = 0x7155,
- QK_MIDI_NOTE_F_SHARP_4 = 0x7156,
- QK_MIDI_NOTE_G_4 = 0x7157,
- QK_MIDI_NOTE_G_SHARP_4 = 0x7158,
- QK_MIDI_NOTE_A_4 = 0x7159,
- QK_MIDI_NOTE_A_SHARP_4 = 0x715A,
- QK_MIDI_NOTE_B_4 = 0x715B,
- QK_MIDI_NOTE_C_5 = 0x7160,
- QK_MIDI_NOTE_C_SHARP_5 = 0x7161,
- QK_MIDI_NOTE_D_5 = 0x7162,
- QK_MIDI_NOTE_D_SHARP_5 = 0x7163,
- QK_MIDI_NOTE_E_5 = 0x7164,
- QK_MIDI_NOTE_F_5 = 0x7165,
- QK_MIDI_NOTE_F_SHARP_5 = 0x7166,
- QK_MIDI_NOTE_G_5 = 0x7167,
- QK_MIDI_NOTE_G_SHARP_5 = 0x7168,
- QK_MIDI_NOTE_A_5 = 0x7169,
- QK_MIDI_NOTE_A_SHARP_5 = 0x716A,
- QK_MIDI_NOTE_B_5 = 0x716B,
- QK_MIDI_OCTAVE_N2 = 0x7170,
- QK_MIDI_OCTAVE_N1 = 0x7171,
- QK_MIDI_OCTAVE_0 = 0x7172,
- QK_MIDI_OCTAVE_1 = 0x7173,
- QK_MIDI_OCTAVE_2 = 0x7174,
- QK_MIDI_OCTAVE_3 = 0x7175,
- QK_MIDI_OCTAVE_4 = 0x7176,
- QK_MIDI_OCTAVE_5 = 0x7177,
- QK_MIDI_OCTAVE_6 = 0x7178,
- QK_MIDI_OCTAVE_7 = 0x7179,
- QK_MIDI_OCTAVE_DOWN = 0x717A,
- QK_MIDI_OCTAVE_UP = 0x717B,
- QK_MIDI_TRANSPOSE_N6 = 0x7180,
- QK_MIDI_TRANSPOSE_N5 = 0x7181,
- QK_MIDI_TRANSPOSE_N4 = 0x7182,
- QK_MIDI_TRANSPOSE_N3 = 0x7183,
- QK_MIDI_TRANSPOSE_N2 = 0x7184,
- QK_MIDI_TRANSPOSE_N1 = 0x7185,
- QK_MIDI_TRANSPOSE_0 = 0x7186,
- QK_MIDI_TRANSPOSE_1 = 0x7187,
- QK_MIDI_TRANSPOSE_2 = 0x7188,
- QK_MIDI_TRANSPOSE_3 = 0x7189,
- QK_MIDI_TRANSPOSE_4 = 0x718A,
- QK_MIDI_TRANSPOSE_5 = 0x718B,
- QK_MIDI_TRANSPOSE_6 = 0x718C,
- QK_MIDI_TRANSPOSE_DOWN = 0x718D,
- QK_MIDI_TRANSPOSE_UP = 0x718E,
- QK_MIDI_VELOCITY_0 = 0x7190,
- QK_MIDI_VELOCITY_1 = 0x7191,
- QK_MIDI_VELOCITY_2 = 0x7192,
- QK_MIDI_VELOCITY_3 = 0x7193,
- QK_MIDI_VELOCITY_4 = 0x7194,
- QK_MIDI_VELOCITY_5 = 0x7195,
- QK_MIDI_VELOCITY_6 = 0x7196,
- QK_MIDI_VELOCITY_7 = 0x7197,
- QK_MIDI_VELOCITY_8 = 0x7198,
- QK_MIDI_VELOCITY_9 = 0x7199,
- QK_MIDI_VELOCITY_10 = 0x719A,
- QK_MIDI_VELOCITY_DOWN = 0x719B,
- QK_MIDI_VELOCITY_UP = 0x719C,
- QK_MIDI_CHANNEL_1 = 0x71A0,
- QK_MIDI_CHANNEL_2 = 0x71A1,
- QK_MIDI_CHANNEL_3 = 0x71A2,
- QK_MIDI_CHANNEL_4 = 0x71A3,
- QK_MIDI_CHANNEL_5 = 0x71A4,
- QK_MIDI_CHANNEL_6 = 0x71A5,
- QK_MIDI_CHANNEL_7 = 0x71A6,
- QK_MIDI_CHANNEL_8 = 0x71A7,
- QK_MIDI_CHANNEL_9 = 0x71A8,
- QK_MIDI_CHANNEL_10 = 0x71A9,
- QK_MIDI_CHANNEL_11 = 0x71AA,
- QK_MIDI_CHANNEL_12 = 0x71AB,
- QK_MIDI_CHANNEL_13 = 0x71AC,
- QK_MIDI_CHANNEL_14 = 0x71AD,
- QK_MIDI_CHANNEL_15 = 0x71AE,
- QK_MIDI_CHANNEL_16 = 0x71AF,
- QK_MIDI_CHANNEL_DOWN = 0x71B0,
- QK_MIDI_CHANNEL_UP = 0x71B1,
- QK_MIDI_ALL_NOTES_OFF = 0x71C0,
- QK_MIDI_SUSTAIN = 0x71C1,
- QK_MIDI_PORTAMENTO = 0x71C2,
- QK_MIDI_SOSTENUTO = 0x71C3,
- QK_MIDI_SOFT = 0x71C4,
- QK_MIDI_LEGATO = 0x71C5,
- QK_MIDI_MODULATION = 0x71C6,
- QK_MIDI_MODULATION_SPEED_DOWN = 0x71C7,
- QK_MIDI_MODULATION_SPEED_UP = 0x71C8,
- QK_MIDI_PITCH_BEND_DOWN = 0x71C9,
- QK_MIDI_PITCH_BEND_UP = 0x71CA,
+ QK_MIDI_NOTE_C_0 = 0x7103,
+ QK_MIDI_NOTE_C_SHARP_0 = 0x7104,
+ QK_MIDI_NOTE_D_0 = 0x7105,
+ QK_MIDI_NOTE_D_SHARP_0 = 0x7106,
+ QK_MIDI_NOTE_E_0 = 0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CTAVE_1 = 0x714E,
+ QK_MIDI_OCTAVE_2 = 0x714F,
+ QK_MIDI_OCTAVE_3 = 0x7150,
+ QK_MIDI_OCTAVE_4 = 0x7151,
+ QK_MIDI_OCTAVE_5 = 0x7152,
+ QK_MIDI_OCTAVE_6 = 0x7153,
+ QK_MIDI_OCTAVE_7 = 0x7154,
+ QK_MIDI_OCTAVE_DOWN = 0x7155,
+ QK_MIDI_OCTAVE_UP = 0x7156,
+ QK_MIDI_TRANSPOSE_N6 = 0x7157,
+ QK_MIDI_TRANSPOSE_N5 = 0x7158,
+ QK_MIDI_TRANSPOSE_N4 = 0x7159,
+ QK_MIDI_TRANSPOSE_N3 = 0x715A,
+ QK_MIDI_TRANSPOSE_N2 = 0x715B,
+ QK_MIDI_TRANSPOSE_N1 = 0x715C,
+ QK_MIDI_TRANSPOSE_0 = 0x715D,
+ QK_MIDI_TRANSPOSE_1 = 0x715E,
+ QK_MIDI_TRANSPOSE_2 = 0x715F,
+ QK_MIDI_TRANSPOSE_3 = 0x7160,
+ QK_MIDI_TRANSPOSE_4 = 0x7161,
+ QK_MIDI_TRANSPOSE_5 = 0x7162,
+ QK_MIDI_TRANSPOSE_6 = 0x7163,
+ QK_MIDI_TRANSPOSE_DOWN = 0x7164,
+ QK_MIDI_TRANSPOSE_UP = 0x7165,
+ QK_MIDI_VELOCITY_0 = 0x7166,
+ QK_MIDI_VELOCITY_1 = 0x7167,
+ QK_MIDI_VELOCITY_2 = 0x7168,
+ QK_MIDI_VELOCITY_3 = 0x7169,
+ QK_MIDI_VELOCITY_4 = 0x716A,
+ QK_MIDI_VELOCITY_5 = 0x716B,
+ QK_MIDI_VELOCITY_6 = 0x716C,
+ QK_MIDI_VELOCITY_7 = 0x716D,
+ QK_MIDI_VELOCITY_8 = 0x716E,
+ QK_MIDI_VELOCITY_9 = 0x716F,
+ QK_MIDI_VELOCITY_10 = 0x7170,
+ QK_MIDI_VELOCITY_DOWN = 0x7171,
+ QK_MIDI_VELOCITY_UP = 0x7172,
+ QK_MIDI_CHANNEL_1 = 0x7173,
+ QK_MIDI_CHANNEL_2 = 0x7174,
+ QK_MIDI_CHANNEL_3 = 0x7175,
+ QK_MIDI_CHANNEL_4 = 0x7176,
+ QK_MIDI_CHANNEL_5 = 0x7177,
+ QK_MIDI_CHANNEL_6 = 0x7178,
+ QK_MIDI_CHANNEL_7 = 0x7179,
+ QK_MIDI_CHANNEL_8 = 0x717A,
+ QK_MIDI_CHANNEL_9 = 0x717B,
+ QK_MIDI_CHANNEL_10 = 0x717C,
+ QK_MIDI_CHANNEL_11 = 0x717D,
+ QK_MIDI_CHANNEL_12 = 0x717E,
+ QK_MIDI_CHANNEL_13 = 0x717F,
+ QK_MIDI_CHANNEL_14 = 0x7180,
+ QK_MIDI_CHANNEL_15 = 0x7181,
+ QK_MIDI_CHANNEL_16 = 0x7182,
+ QK_MIDI_CHANNEL_DOWN = 0x7183,
+ QK_MIDI_CHANNEL_UP = 0x7184,
+ QK_MIDI_ALL_NOTES_OFF = 0x7185,
+ QK_MIDI_SUSTAIN = 0x7186,
+ QK_MIDI_PORTAMENTO = 0x7187,
+ QK_MIDI_SOSTENUTO = 0x7188,
+ QK_MIDI_SOFT = 0x7189,
+ QK_MIDI_LEGATO = 0x718A,
+ QK_MIDI_MODULATION = 0x718B,
+ QK_MIDI_MODULATION_SPEED_DOWN = 0x718C,
+ QK_MIDI_MODULATION_SPEED_UP = 0x718D,
+ QK_MIDI_PITCH_BEND_DOWN = 0x718E,
+ QK_MIDI_PITCH_BEND_UP = 0x718F,
SQ_ON = 0x7200,
SQ_OFF = 0x7201,
SQ_TOG = 0x7202,
@@ -713,6 +717,8 @@ enum qk_keycode_defines {
QK_AUTOCORRECT_ON = 0x7C74,
QK_AUTOCORRECT_OFF = 0x7C75,
QK_AUTOCORRECT_TOGGLE = 0x7C76,
+ QK_TRI_LAYER_LOWER = 0x7C77,
+ QK_TRI_LAYER_UPPER = 0x7C78,
SAFE_RANGE = 0x7E00,
// Alias
@@ -863,6 +869,13 @@ enum qk_keycode_defines {
KC_RGUI = KC_RIGHT_GUI,
KC_RCMD = KC_RIGHT_GUI,
KC_RWIN = KC_RIGHT_GUI,
+ SH_TOGG = QK_SWAP_HANDS_TOGGLE,
+ SH_TT = QK_SWAP_HANDS_TAP_TOGGLE,
+ SH_MON = QK_SWAP_HANDS_MOMENTARY_ON,
+ SH_MOFF = QK_SWAP_HANDS_MOMENTARY_OFF,
+ SH_OFF = QK_SWAP_HANDS_OFF,
+ SH_ON = QK_SWAP_HANDS_ON,
+ SH_OS = QK_SWAP_HANDS_ONE_SHOT,
CL_SWAP = MAGIC_SWAP_CONTROL_CAPSLOCK,
CL_NORM = MAGIC_UNSWAP_CONTROL_CAPSLOCK,
CL_TOGG = MAGIC_TOGGLE_CONTROL_CAPSLOCK,
@@ -1271,6 +1284,8 @@ enum qk_keycode_defines {
AC_ON = QK_AUTOCORRECT_ON,
AC_OFF = QK_AUTOCORRECT_OFF,
AC_TOGG = QK_AUTOCORRECT_TOGGLE,
+ TL_LOWR = QK_TRI_LAYER_LOWER,
+ TL_UPPR = QK_TRI_LAYER_UPPER,
};
// Range Helpers
@@ -1301,15 +1316,17 @@ enum qk_keycode_defines {
#define IS_QK_KB(code) ((code) >= QK_KB && (code) <= QK_KB_MAX)
#define IS_QK_USER(code) ((code) >= QK_USER && (code) <= QK_USER_MAX)
#define IS_QK_UNICODE(code) ((code) >= QK_UNICODE && (code) <= QK_UNICODE_MAX)
+#define IS_QK_UNICODEMAP(code) ((code) >= QK_UNICODEMAP && (code) <= QK_UNICODEMAP_MAX)
+#define IS_QK_UNICODEMAP_PAIR(code) ((code) >= QK_UNICODEMAP_PAIR && (code) <= QK_UNICODEMAP_PAIR_MAX)
// Group Helpers
#define IS_INTERNAL_KEYCODE(code) ((code) >= KC_NO && (code) <= KC_TRANSPARENT)
#define IS_BASIC_KEYCODE(code) ((code) >= KC_A && (code) <= KC_EXSEL)
#define IS_SYSTEM_KEYCODE(code) ((code) >= KC_SYSTEM_POWER && (code) <= KC_SYSTEM_WAKE)
-#define IS_MEDIA_KEYCODE(code) ((code) >= KC_AUDIO_MUTE && (code) <= KC_ASSISTANT)
+#define IS_CONSUMER_KEYCODE(code) ((code) >= KC_AUDIO_MUTE && (code) <= KC_ASSISTANT)
#define IS_MOUSE_KEYCODE(code) ((code) >= KC_MS_UP && (code) <= KC_MS_ACCEL2)
-#define IS_MODIFIERS_KEYCODE(code) ((code) >= KC_LEFT_CTRL && (code) <= KC_RIGHT_GUI)
-#define IS_SWAP_HANDS_KEYCODE(code) ((code) >= SH_TG && (code) <= SH_OS)
+#define IS_MODIFIER_KEYCODE(code) ((code) >= KC_LEFT_CTRL && (code) <= KC_RIGHT_GUI)
+#define IS_SWAP_HANDS_KEYCODE(code) ((code) >= QK_SWAP_HANDS_TOGGLE && (code) <= QK_SWAP_HANDS_ONE_SHOT)
#define IS_MAGIC_KEYCODE(code) ((code) >= MAGIC_SWAP_CONTROL_CAPSLOCK && (code) <= MAGIC_TOGGLE_ESCAPE_CAPSLOCK)
#define IS_MIDI_KEYCODE(code) ((code) >= QK_MIDI_ON && (code) <= QK_MIDI_PITCH_BEND_UP)
#define IS_SEQUENCER_KEYCODE(code) ((code) >= SQ_ON && (code) <= SQ_SCLR)
@@ -1320,4 +1337,4 @@ enum qk_keycode_defines {
#define IS_MACRO_KEYCODE(code) ((code) >= QK_MACRO_0 && (code) <= QK_MACRO_31)
#define IS_BACKLIGHT_KEYCODE(code) ((code) >= QK_BACKLIGHT_ON && (code) <= QK_BACKLIGHT_TOGGLE_BREATHING)
#define IS_RGB_KEYCODE(code) ((code) >= RGB_TOG && (code) <= RGB_MODE_TWINKLE)
-#define IS_QUANTUM_KEYCODE(code) ((code) >= QK_BOOTLOADER && (code) <= QK_AUTOCORRECT_TOGGLE)
+#define IS_QUANTUM_KEYCODE(code) ((code) >= QK_BOOTLOADER && (code) <= QK_TRI_LAYER_UPPER)