summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-11-09 06:03:31 +1100
committerGitHub <noreply@github.com>2022-11-08 19:03:31 +0000
commitd810878d5e36e032ec99fb309b66caf3ea57e4ba (patch)
treec102744740f2beb805bfcea4ca86f1e41936dd11 /quantum
parent9a0f347a095ad46c8e44eaed6925811da63aef6c (diff)
Normalise output selection (Bluetooth) keycodes (#19004)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/keycodes.h9
-rw-r--r--quantum/quantum.c6
2 files changed, 9 insertions, 6 deletions
diff --git a/quantum/keycodes.h b/quantum/keycodes.h
index 2b81261519..c013858e78 100644
--- a/quantum/keycodes.h
+++ b/quantum/keycodes.h
@@ -662,9 +662,9 @@ enum qk_keycode_defines {
QK_SPACE_CADET_LEFT_ALT_PARENTHESIS_OPEN = 0x7C1C,
QK_SPACE_CADET_RIGHT_ALT_PARENTHESIS_CLOSE = 0x7C1D,
QK_SPACE_CADET_RIGHT_SHIFT_ENTER = 0x7C1E,
- OUT_AUTO = 0x7C20,
- OUT_USB = 0x7C21,
- OUT_BT = 0x7C22,
+ QK_OUTPUT_AUTO = 0x7C20,
+ QK_OUTPUT_USB = 0x7C21,
+ QK_OUTPUT_BLUETOOTH = 0x7C22,
QK_UNICODE_MODE_NEXT = 0x7C30,
QK_UNICODE_MODE_PREVIOUS = 0x7C31,
QK_UNICODE_MODE_MACOS = 0x7C32,
@@ -1221,6 +1221,9 @@ enum qk_keycode_defines {
SC_LAPO = QK_SPACE_CADET_LEFT_ALT_PARENTHESIS_OPEN,
SC_RAPC = QK_SPACE_CADET_RIGHT_ALT_PARENTHESIS_CLOSE,
SC_SENT = QK_SPACE_CADET_RIGHT_SHIFT_ENTER,
+ OU_AUTO = QK_OUTPUT_AUTO,
+ OU_USB = QK_OUTPUT_USB,
+ OU_BT = QK_OUTPUT_BLUETOOTH,
UC_NEXT = QK_UNICODE_MODE_NEXT,
UC_PREV = QK_UNICODE_MODE_PREVIOUS,
UC_MAC = QK_UNICODE_MODE_MACOS,
diff --git a/quantum/quantum.c b/quantum/quantum.c
index c60ec22d8b..e7dc71e5d7 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -381,13 +381,13 @@ bool process_record_quantum(keyrecord_t *record) {
return false;
#endif
#ifdef BLUETOOTH_ENABLE
- case OUT_AUTO:
+ case QK_OUTPUT_AUTO:
set_output(OUTPUT_AUTO);
return false;
- case OUT_USB:
+ case QK_OUTPUT_USB:
set_output(OUTPUT_USB);
return false;
- case OUT_BT:
+ case QK_OUTPUT_BLUETOOTH:
set_output(OUTPUT_BLUETOOTH);
return false;
#endif