Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding get_tapping_term if vial functions are disabled #289

Open
wants to merge 1 commit into
base: vial
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions quantum/vial.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,12 @@ static void reload_tap_dance(void) {
#endif

#ifdef TAPPING_TERM_PER_KEY
/* allow overriding get_tapping_term if vial features are disabled */
#if defined(VIAL_TAP_DANCE_ENABLE) || defined(QMK_SETTINGS)
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
#else
__attribute__((weak)) uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
#endif // defined(VIAL_TAP_DANCE_ENABLE) || defined(QMK_SETTINGS)
#ifdef VIAL_TAP_DANCE_ENABLE
if (keycode >= QK_TAP_DANCE && keycode <= QK_TAP_DANCE_MAX) {
vial_tap_dance_entry_t td;
Expand Down