diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 22 | 
1 files changed, 19 insertions, 3 deletions
| diff --git a/quantum/quantum.c b/quantum/quantum.c index 9a0016b150..add7402550 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -225,7 +225,7 @@ bool process_record_quantum(keyrecord_t *record) {      uint16_t keycode = get_record_keycode(record, true);      // This is how you use actions here -    // if (keycode == KC_LEAD) { +    // if (keycode == QK_LEADER) {      //   action_t action;      //   action.code = ACTION_DEFAULT_LAYER_SET(0);      //   process_action(record, action); @@ -251,7 +251,11 @@ bool process_record_quantum(keyrecord_t *record) {  #endif  #ifdef TAP_DANCE_ENABLE -    preprocess_tap_dance(keycode, record); +    if (preprocess_tap_dance(keycode, record)) { +        // The tap dance might have updated the layer state, therefore the +        // result of the keycode lookup might change. +        keycode = get_record_keycode(record, true); +    }  #endif      if (!( @@ -272,6 +276,9 @@ bool process_record_quantum(keyrecord_t *record) {  #if defined(VIA_ENABLE)              process_record_via(keycode, record) &&  #endif +#if defined(POINTING_DEVICE_ENABLE) && defined(POINTING_DEVICE_AUTO_MOUSE_ENABLE) +            process_auto_mouse(keycode, record) && +#endif              process_record_kb(keycode, record) &&  #if defined(SECURE_ENABLE)              process_secure(keycode, record) && @@ -336,6 +343,9 @@ bool process_record_quantum(keyrecord_t *record) {  #ifdef PROGRAMMABLE_BUTTON_ENABLE              process_programmable_button(keycode, record) &&  #endif +#ifdef AUTOCORRECT_ENABLE +            process_autocorrect(keycode, record) && +#endif              true)) {          return false;      } @@ -361,8 +371,10 @@ bool process_record_quantum(keyrecord_t *record) {  #endif                  return false;              case QK_CLEAR_EEPROM: +#ifdef NO_RESET                  eeconfig_init(); -#ifndef NO_RESET +#else +                eeconfig_disable();                  soft_reset_keyboard();  #endif                  return false; @@ -410,7 +422,11 @@ bool process_record_quantum(keyrecord_t *record) {                  } else {                      SEND_STRING_DELAY(" compile ", TAP_CODE_DELAY);                  } +#    if defined(CONVERTER_ENABLED) +                SEND_STRING_DELAY("-kb " QMK_KEYBOARD " -km " QMK_KEYMAP " -e CONVERT_TO=" CONVERTER_TARGET SS_TAP(X_ENTER), TAP_CODE_DELAY); +#    else                  SEND_STRING_DELAY("-kb " QMK_KEYBOARD " -km " QMK_KEYMAP SS_TAP(X_ENTER), TAP_CODE_DELAY); +#    endif                  if (temp_mod & MOD_MASK_SHIFT && temp_mod & MOD_MASK_CTRL) {                      reset_keyboard();                  } | 
