summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quantum/action_tapping.c18
-rw-r--r--quantum/pointing_device_drivers.c2
-rw-r--r--quantum/process_keycode/process_tap_dance.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/quantum/action_tapping.c b/quantum/action_tapping.c
index d2c93f85e3..4ba38bee8d 100644
--- a/quantum/action_tapping.c
+++ b/quantum/action_tapping.c
@@ -124,7 +124,7 @@ bool process_tapping(keyrecord_t *keyp) {
124# if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT) 124# if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT)
125 || ( 125 || (
126# ifdef RETRO_TAPPING_PER_KEY 126# ifdef RETRO_TAPPING_PER_KEY
127 get_retro_tapping(tapping_keycode, keyp) && 127 get_retro_tapping(tapping_keycode, &tapping_key) &&
128# endif 128# endif
129 (RETRO_SHIFT + 0) != 0 && TIMER_DIFF_16(event.time, tapping_key.event.time) < (RETRO_SHIFT + 0) 129 (RETRO_SHIFT + 0) != 0 && TIMER_DIFF_16(event.time, tapping_key.event.time) < (RETRO_SHIFT + 0)
130 ) 130 )
@@ -158,7 +158,7 @@ bool process_tapping(keyrecord_t *keyp) {
158 ( 158 (
159 ( 159 (
160# ifdef TAPPING_TERM_PER_KEY 160# ifdef TAPPING_TERM_PER_KEY
161 get_tapping_term(tapping_keycode, keyp) 161 get_tapping_term(tapping_keycode, &tapping_key)
162# else 162# else
163 g_tapping_term 163 g_tapping_term
164# endif 164# endif
@@ -166,7 +166,7 @@ bool process_tapping(keyrecord_t *keyp) {
166 ) 166 )
167 167
168# ifdef PERMISSIVE_HOLD_PER_KEY 168# ifdef PERMISSIVE_HOLD_PER_KEY
169 || get_permissive_hold(tapping_keycode, keyp) 169 || get_permissive_hold(tapping_keycode, &tapping_key)
170# elif defined(PERMISSIVE_HOLD) 170# elif defined(PERMISSIVE_HOLD)
171 || true 171 || true
172# endif 172# endif
@@ -177,7 +177,7 @@ bool process_tapping(keyrecord_t *keyp) {
177# if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT) 177# if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT)
178 || ( 178 || (
179# ifdef RETRO_TAPPING_PER_KEY 179# ifdef RETRO_TAPPING_PER_KEY
180 get_retro_tapping(tapping_keycode, keyp) && 180 get_retro_tapping(tapping_keycode, &tapping_key) &&
181# endif 181# endif
182 ( 182 (
183 // Rolled over the two keys. 183 // Rolled over the two keys.
@@ -188,7 +188,7 @@ bool process_tapping(keyrecord_t *keyp) {
188 || ( 188 || (
189 IS_LT(tapping_keycode) 189 IS_LT(tapping_keycode)
190# ifdef HOLD_ON_OTHER_KEY_PRESS_PER_KEY 190# ifdef HOLD_ON_OTHER_KEY_PRESS_PER_KEY
191 && get_hold_on_other_key_press(tapping_keycode, keyp) 191 && get_hold_on_other_key_press(tapping_keycode, &tapping_key)
192# endif 192# endif
193 ) 193 )
194# endif 194# endif
@@ -196,7 +196,7 @@ bool process_tapping(keyrecord_t *keyp) {
196 || ( 196 || (
197 IS_MT(tapping_keycode) 197 IS_MT(tapping_keycode)
198# ifdef IGNORE_MOD_TAP_INTERRUPT_PER_KEY 198# ifdef IGNORE_MOD_TAP_INTERRUPT_PER_KEY
199 && !get_ignore_mod_tap_interrupt(tapping_keycode, keyp) 199 && !get_ignore_mod_tap_interrupt(tapping_keycode, &tapping_key)
200# endif 200# endif
201 ) 201 )
202# endif 202# endif
@@ -252,7 +252,7 @@ bool process_tapping(keyrecord_t *keyp) {
252 tapping_key.tap.interrupted = true; 252 tapping_key.tap.interrupted = true;
253# if defined(HOLD_ON_OTHER_KEY_PRESS) || defined(HOLD_ON_OTHER_KEY_PRESS_PER_KEY) 253# if defined(HOLD_ON_OTHER_KEY_PRESS) || defined(HOLD_ON_OTHER_KEY_PRESS_PER_KEY)
254# if defined(HOLD_ON_OTHER_KEY_PRESS_PER_KEY) 254# if defined(HOLD_ON_OTHER_KEY_PRESS_PER_KEY)
255 if (get_hold_on_other_key_press(tapping_keycode, keyp)) 255 if (get_hold_on_other_key_press(tapping_keycode, &tapping_key))
256# endif 256# endif
257 { 257 {
258 debug("Tapping: End. No tap. Interfered by pressed key\n"); 258 debug("Tapping: End. No tap. Interfered by pressed key\n");
@@ -360,7 +360,7 @@ bool process_tapping(keyrecord_t *keyp) {
360# if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT) 360# if defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT)
361 || ( 361 || (
362# ifdef RETRO_TAPPING_PER_KEY 362# ifdef RETRO_TAPPING_PER_KEY
363 get_retro_tapping(tapping_keycode, keyp) && 363 get_retro_tapping(tapping_keycode, &tapping_key) &&
364# endif 364# endif
365 (RETRO_SHIFT + 0) != 0 && TIMER_DIFF_16(event.time, tapping_key.event.time) < (RETRO_SHIFT + 0) 365 (RETRO_SHIFT + 0) != 0 && TIMER_DIFF_16(event.time, tapping_key.event.time) < (RETRO_SHIFT + 0)
366 ) 366 )
@@ -373,7 +373,7 @@ bool process_tapping(keyrecord_t *keyp) {
373# if !defined(TAPPING_FORCE_HOLD) || defined(TAPPING_FORCE_HOLD_PER_KEY) 373# if !defined(TAPPING_FORCE_HOLD) || defined(TAPPING_FORCE_HOLD_PER_KEY)
374 if ( 374 if (
375# ifdef TAPPING_FORCE_HOLD_PER_KEY 375# ifdef TAPPING_FORCE_HOLD_PER_KEY
376 !get_tapping_force_hold(tapping_keycode, keyp) && 376 !get_tapping_force_hold(tapping_keycode, &tapping_key) &&
377# endif 377# endif
378 !tapping_key.tap.interrupted && tapping_key.tap.count > 0) { 378 !tapping_key.tap.interrupted && tapping_key.tap.count > 0) {
379 // sequential tap. 379 // sequential tap.
diff --git a/quantum/pointing_device_drivers.c b/quantum/pointing_device_drivers.c
index 4333bbb095..7702958f88 100644
--- a/quantum/pointing_device_drivers.c
+++ b/quantum/pointing_device_drivers.c
@@ -101,7 +101,7 @@ const pointing_device_driver_t pointing_device_driver = {
101# ifdef TAPPING_TERM_PER_KEY 101# ifdef TAPPING_TERM_PER_KEY
102# include "action.h" 102# include "action.h"
103# include "action_tapping.h" 103# include "action_tapping.h"
104# define CIRQUE_PINNACLE_TAPPING_TERM get_tapping_term(KC_BTN1, NULL) 104# define CIRQUE_PINNACLE_TAPPING_TERM get_tapping_term(KC_BTN1, &(keyrecord_t){})
105# else 105# else
106# ifdef TAPPING_TERM 106# ifdef TAPPING_TERM
107# define CIRQUE_PINNACLE_TAPPING_TERM TAPPING_TERM 107# define CIRQUE_PINNACLE_TAPPING_TERM TAPPING_TERM
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c
index c707fdea30..035c9c265d 100644
--- a/quantum/process_keycode/process_tap_dance.c
+++ b/quantum/process_keycode/process_tap_dance.c
@@ -173,7 +173,7 @@ void tap_dance_task() {
173 tap_user_defined = action->custom_tapping_term; 173 tap_user_defined = action->custom_tapping_term;
174 } else { 174 } else {
175#ifdef TAPPING_TERM_PER_KEY 175#ifdef TAPPING_TERM_PER_KEY
176 tap_user_defined = get_tapping_term(action->state.keycode, NULL); 176 tap_user_defined = get_tapping_term(action->state.keycode, &(keyrecord_t){});
177#else 177#else
178 tap_user_defined = TAPPING_TERM; 178 tap_user_defined = TAPPING_TERM;
179#endif 179#endif