summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2024-08-27 10:52:23 +1000
committerGitHub <noreply@github.com>2024-08-27 10:52:23 +1000
commit70cbf08b673c2cc59e603503e834ac460040ecc1 (patch)
tree3843e6c36e6564a1a6842cc15adc276cd29ce0d2 /quantum/quantum.c
parentecf725b356e999799f30f0fcaa9e0848cc3163ca (diff)
Add new connection keycodes for Bluetooth, 2.4GHz. (#24251)
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index b21d6f1a3d..db323e31c9 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -21,7 +21,7 @@
21#endif 21#endif
22 22
23#ifdef BLUETOOTH_ENABLE 23#ifdef BLUETOOTH_ENABLE
24# include "outputselect.h" 24# include "process_connection.h"
25#endif 25#endif
26 26
27#ifdef GRAVE_ESC_ENABLE 27#ifdef GRAVE_ESC_ENABLE
@@ -393,6 +393,9 @@ bool process_record_quantum(keyrecord_t *record) {
393#ifdef TRI_LAYER_ENABLE 393#ifdef TRI_LAYER_ENABLE
394 process_tri_layer(keycode, record) && 394 process_tri_layer(keycode, record) &&
395#endif 395#endif
396#ifdef BLUETOOTH_ENABLE
397 process_connection(keycode, record) &&
398#endif
396 true)) { 399 true)) {
397 return false; 400 return false;
398 } 401 }
@@ -430,17 +433,6 @@ bool process_record_quantum(keyrecord_t *record) {
430 velocikey_toggle(); 433 velocikey_toggle();
431 return false; 434 return false;
432#endif 435#endif
433#ifdef BLUETOOTH_ENABLE
434 case QK_OUTPUT_AUTO:
435 set_output(OUTPUT_AUTO);
436 return false;
437 case QK_OUTPUT_USB:
438 set_output(OUTPUT_USB);
439 return false;
440 case QK_OUTPUT_BLUETOOTH:
441 set_output(OUTPUT_BLUETOOTH);
442 return false;
443#endif
444#ifndef NO_ACTION_ONESHOT 436#ifndef NO_ACTION_ONESHOT
445 case QK_ONE_SHOT_TOGGLE: 437 case QK_ONE_SHOT_TOGGLE:
446 oneshot_toggle(); 438 oneshot_toggle();