diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 0aecd238e..d3905decf 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | #include "quantum.h" | 1 | #include "quantum.h" |
| 2 | #ifdef PROTOCOL_LUFA | ||
| 3 | #include "outputselect.h" | ||
| 4 | #endif | ||
| 2 | 5 | ||
| 3 | #ifndef TAPPING_TERM | 6 | #ifndef TAPPING_TERM |
| 4 | #define TAPPING_TERM 200 | 7 | #define TAPPING_TERM 200 |
| @@ -158,6 +161,9 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 158 | #ifndef DISABLE_CHORDING | 161 | #ifndef DISABLE_CHORDING |
| 159 | process_chording(keycode, record) && | 162 | process_chording(keycode, record) && |
| 160 | #endif | 163 | #endif |
| 164 | #ifdef COMBO_ENABLE | ||
| 165 | process_combo(keycode, record) && | ||
| 166 | #endif | ||
| 161 | #ifdef UNICODE_ENABLE | 167 | #ifdef UNICODE_ENABLE |
| 162 | process_unicode(keycode, record) && | 168 | process_unicode(keycode, record) && |
| 163 | #endif | 169 | #endif |
| @@ -240,6 +246,36 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 240 | return false; | 246 | return false; |
| 241 | break; | 247 | break; |
| 242 | #endif | 248 | #endif |
| 249 | #ifdef PROTOCOL_LUFA | ||
| 250 | case OUT_AUTO: | ||
| 251 | if (record->event.pressed) { | ||
| 252 | set_output(OUTPUT_AUTO); | ||
| 253 | } | ||
| 254 | return false; | ||
| 255 | break; | ||
| 256 | case OUT_USB: | ||
| 257 | if (record->event.pressed) { | ||
| 258 | set_output(OUTPUT_USB); | ||
| 259 | } | ||
| 260 | return false; | ||
| 261 | break; | ||
| 262 | #ifdef BLUETOOTH_ENABLE | ||
| 263 | case OUT_BT: | ||
| 264 | if (record->event.pressed) { | ||
| 265 | set_output(OUTPUT_BLUETOOTH); | ||
| 266 | } | ||
| 267 | return false; | ||
| 268 | break; | ||
| 269 | #endif | ||
| 270 | #ifdef ADAFRUIT_BLE_ENABLE | ||
| 271 | case OUT_BLE: | ||
| 272 | if (record->event.pressed) { | ||
| 273 | set_output(OUTPUT_ADAFRUIT_BLE); | ||
| 274 | } | ||
| 275 | return false; | ||
| 276 | break; | ||
| 277 | #endif | ||
| 278 | #endif | ||
| 243 | case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_TOGGLE_NKRO: | 279 | case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_TOGGLE_NKRO: |
| 244 | if (record->event.pressed) { | 280 | if (record->event.pressed) { |
| 245 | // MAGIC actions (BOOTMAGIC without the boot) | 281 | // MAGIC actions (BOOTMAGIC without the boot) |
| @@ -536,6 +572,11 @@ void matrix_scan_quantum() { | |||
| 536 | #ifdef TAP_DANCE_ENABLE | 572 | #ifdef TAP_DANCE_ENABLE |
| 537 | matrix_scan_tap_dance(); | 573 | matrix_scan_tap_dance(); |
| 538 | #endif | 574 | #endif |
| 575 | |||
| 576 | #ifdef COMBO_ENABLE | ||
| 577 | matrix_scan_combo(); | ||
| 578 | #endif | ||
| 579 | |||
| 539 | matrix_scan_kb(); | 580 | matrix_scan_kb(); |
| 540 | } | 581 | } |
| 541 | 582 | ||
