diff options
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/eeconfig.c | 1 | ||||
| -rw-r--r-- | tmk_core/common/eeconfig.h | 1 | ||||
| -rw-r--r-- | tmk_core/common/keyboard.c | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c index ded27e599..9c1e3520e 100644 --- a/tmk_core/common/eeconfig.c +++ b/tmk_core/common/eeconfig.c | |||
| @@ -46,6 +46,7 @@ void eeconfig_init_quantum(void) { | |||
| 46 | eeprom_update_dword(EECONFIG_RGBLIGHT, 0); | 46 | eeprom_update_dword(EECONFIG_RGBLIGHT, 0); |
| 47 | eeprom_update_byte(EECONFIG_STENOMODE, 0); | 47 | eeprom_update_byte(EECONFIG_STENOMODE, 0); |
| 48 | eeprom_update_dword(EECONFIG_HAPTIC, 0); | 48 | eeprom_update_dword(EECONFIG_HAPTIC, 0); |
| 49 | eeprom_update_byte(EECONFIG_VELOCIKEY, 0); | ||
| 49 | 50 | ||
| 50 | eeconfig_init_kb(); | 51 | eeconfig_init_kb(); |
| 51 | } | 52 | } |
diff --git a/tmk_core/common/eeconfig.h b/tmk_core/common/eeconfig.h index d576634f5..0ac3dff07 100644 --- a/tmk_core/common/eeconfig.h +++ b/tmk_core/common/eeconfig.h | |||
| @@ -40,6 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 40 | #define EECONFIG_HANDEDNESS (uint8_t *)14 | 40 | #define EECONFIG_HANDEDNESS (uint8_t *)14 |
| 41 | #define EECONFIG_KEYBOARD (uint32_t *)15 | 41 | #define EECONFIG_KEYBOARD (uint32_t *)15 |
| 42 | #define EECONFIG_USER (uint32_t *)19 | 42 | #define EECONFIG_USER (uint32_t *)19 |
| 43 | #define EECONFIG_VELOCIKEY (uint8_t *)23 | ||
| 43 | 44 | ||
| 44 | #define EECONFIG_HAPTIC (uint32_t*)24 | 45 | #define EECONFIG_HAPTIC (uint32_t*)24 |
| 45 | 46 | ||
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c index 849d74aa1..52546866e 100644 --- a/tmk_core/common/keyboard.c +++ b/tmk_core/common/keyboard.c | |||
| @@ -75,6 +75,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 75 | #ifdef QWIIC_ENABLE | 75 | #ifdef QWIIC_ENABLE |
| 76 | # include "qwiic.h" | 76 | # include "qwiic.h" |
| 77 | #endif | 77 | #endif |
| 78 | #ifdef VELOCIKEY_ENABLE | ||
| 79 | #include "velocikey.h" | ||
| 80 | #endif | ||
| 78 | 81 | ||
| 79 | #ifdef MATRIX_HAS_GHOST | 82 | #ifdef MATRIX_HAS_GHOST |
| 80 | extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; | 83 | extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS]; |
| @@ -336,6 +339,10 @@ MATRIX_LOOP_END: | |||
| 336 | midi_task(); | 339 | midi_task(); |
| 337 | #endif | 340 | #endif |
| 338 | 341 | ||
| 342 | #ifdef VELOCIKEY_ENABLE | ||
| 343 | if (velocikey_enabled()) { velocikey_decelerate(); } | ||
| 344 | #endif | ||
| 345 | |||
| 339 | // update LED | 346 | // update LED |
| 340 | if (led_status != host_keyboard_leds()) { | 347 | if (led_status != host_keyboard_leds()) { |
| 341 | led_status = host_keyboard_leds(); | 348 | led_status = host_keyboard_leds(); |
