tap-dance: Restructure code and document in more detail (#16394)
This commit is contained in:
@@ -27,3 +27,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#define COMBO_ALLOW_ACTION_KEYS
|
||||
#define COMBO_VARIABLE_LEN
|
||||
|
||||
#define TAPPING_TERM_PER_KEY
|
||||
|
@@ -199,5 +199,14 @@ void ql_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[GAME] = ACTION_TAP_DANCE_FN_ADVANCED_TIME(NULL, ql_finished, ql_reset, 275)
|
||||
[GAME] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset)
|
||||
};
|
||||
|
||||
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QK_TAP_DANCE ... QK_TAP_DANCE_MAX:
|
||||
return 275;
|
||||
default:
|
||||
return TAPPING_TERM;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user