Move webusb pairing key back into quantum

This commit is contained in:
Drashna Jael're
2020-01-28 18:24:05 -08:00
committed by Florian Didron
parent 0c4e870063
commit 66d48534b1
2 changed files with 7 additions and 7 deletions

View File

@@ -206,20 +206,15 @@ bool process_record_oryx(uint16_t keycode, keyrecord_t *record) {
webusb_send(event, sizeof(event)); webusb_send(event, sizeof(event));
} }
switch (keycode) {
case WEBUSB_PAIR:
if (record->event.pressed) {
webusb_state.pairing = true;
}
return false;
#ifdef DYNAMIC_KEYMAP_ENABLE #ifdef DYNAMIC_KEYMAP_ENABLE
switch (keycode) {
case MACRO00 ... MACRO15: case MACRO00 ... MACRO15:
if (record->event.pressed) { if (record->event.pressed) {
dynamic_keymap_macro_send(keycode - MACRO00); dynamic_keymap_macro_send(keycode - MACRO00);
} }
return false; return false;
#endif
} }
#endif
return true; return true;
} }

View File

@@ -312,6 +312,11 @@ bool process_record_quantum(keyrecord_t *record) {
case BL_BRTG: case BL_BRTG:
backlight_toggle_breathing(); backlight_toggle_breathing();
return false; return false;
#endif
#ifdef WEBUSB_ENABLE
case WEBUSB_PAIR:
webusb_state.pairing ^= true;
return false;
#endif #endif
} }
} }