diff options
| author | precondition <57645186+precondition@users.noreply.github.com> | 2022-12-13 12:20:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-13 22:20:07 +1100 |
| commit | 515dd18c2801663bbac0e59f683c2a93e4bd9b1a (patch) | |
| tree | a60fa641a1d5e0e3ff08fbb0a6718c8aa5280f15 /quantum/action_tapping.c | |
| parent | ca13734f912e64c632daf816e700b1b176d0ac8e (diff) | |
Remove IGNORE_MOD_TAP_INTERRUPT_PER_KEY in favour of HOLD_ON_OTHER_KEY_PRESS_PER_KEY (#15741)
Diffstat (limited to 'quantum/action_tapping.c')
| -rw-r--r-- | quantum/action_tapping.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/quantum/action_tapping.c b/quantum/action_tapping.c index 0350495ae5..ca0f31f12e 100644 --- a/quantum/action_tapping.c +++ b/quantum/action_tapping.c | |||
| @@ -15,6 +15,14 @@ | |||
| 15 | 15 | ||
| 16 | #ifndef NO_ACTION_TAPPING | 16 | #ifndef NO_ACTION_TAPPING |
| 17 | 17 | ||
| 18 | # if defined(IGNORE_MOD_TAP_INTERRUPT_PER_KEY) | ||
| 19 | # error "IGNORE_MOD_TAP_INTERRUPT_PER_KEY has been removed; the code needs to be ported to use HOLD_ON_OTHER_KEY_PRESS_PER_KEY instead." | ||
| 20 | # elif !defined(IGNORE_MOD_TAP_INTERRUPT) | ||
| 21 | # if !defined(PERMISSIVE_HOLD) && !defined(PERMISSIVE_HOLD_PER_KEY) && !defined(HOLD_ON_OTHER_KEY_PRESS) && !defined(HOLD_ON_OTHER_KEY_PRESS_PER_KEY) | ||
| 22 | # pragma message "The default behavior of mod-taps will change to mimic IGNORE_MOD_TAP_INTERRUPT in the future.\nIf you wish to keep the old default behavior of mod-taps, please use HOLD_ON_OTHER_KEY_PRESS." | ||
| 23 | # endif | ||
| 24 | # endif | ||
| 25 | |||
| 18 | # define IS_TAPPING() !IS_NOEVENT(tapping_key.event) | 26 | # define IS_TAPPING() !IS_NOEVENT(tapping_key.event) |
| 19 | # define IS_TAPPING_PRESSED() (IS_TAPPING() && tapping_key.event.pressed) | 27 | # define IS_TAPPING_PRESSED() (IS_TAPPING() && tapping_key.event.pressed) |
| 20 | # define IS_TAPPING_RELEASED() (IS_TAPPING() && !tapping_key.event.pressed) | 28 | # define IS_TAPPING_RELEASED() (IS_TAPPING() && !tapping_key.event.pressed) |
| @@ -162,9 +170,7 @@ void action_tapping_process(keyrecord_t record) { | |||
| 162 | # define TAP_GET_HOLD_ON_OTHER_KEY_PRESS false | 170 | # define TAP_GET_HOLD_ON_OTHER_KEY_PRESS false |
| 163 | # endif | 171 | # endif |
| 164 | 172 | ||
| 165 | # ifdef IGNORE_MOD_TAP_INTERRUPT_PER_KEY | 173 | # if defined(IGNORE_MOD_TAP_INTERRUPT) |
| 166 | # define TAP_GET_IGNORE_MOD_TAP_INTERRUPT get_ignore_mod_tap_interrupt(tapping_keycode, &tapping_key) | ||
| 167 | # elif defined(IGNORE_MOD_TAP_INTERRUPT) | ||
| 168 | # define TAP_GET_IGNORE_MOD_TAP_INTERRUPT true | 174 | # define TAP_GET_IGNORE_MOD_TAP_INTERRUPT true |
| 169 | # else | 175 | # else |
| 170 | # define TAP_GET_IGNORE_MOD_TAP_INTERRUPT false | 176 | # define TAP_GET_IGNORE_MOD_TAP_INTERRUPT false |
| @@ -216,7 +222,7 @@ bool process_tapping(keyrecord_t *keyp) { | |||
| 216 | // Rolled over the two keys. | 222 | // Rolled over the two keys. |
| 217 | (tapping_key.tap.interrupted == true && ( | 223 | (tapping_key.tap.interrupted == true && ( |
| 218 | (TAP_IS_LT && TAP_GET_HOLD_ON_OTHER_KEY_PRESS) || | 224 | (TAP_IS_LT && TAP_GET_HOLD_ON_OTHER_KEY_PRESS) || |
| 219 | (TAP_IS_MT && !TAP_GET_IGNORE_MOD_TAP_INTERRUPT) | 225 | (TAP_IS_MT && TAP_GET_HOLD_ON_OTHER_KEY_PRESS) |
| 220 | ) | 226 | ) |
| 221 | ) | 227 | ) |
| 222 | // Makes Retro Shift ignore [IGNORE_MOD_TAP_INTERRUPT's | 228 | // Makes Retro Shift ignore [IGNORE_MOD_TAP_INTERRUPT's |
