forked from mirrors/qmk_userspace
[Test] Reset timer for every unit test and provide timestamps for log messages (#17028)
This commit is contained in:
parent
e2ab98f960
commit
962e4c0e18
20 changed files with 1011 additions and 41 deletions
|
@ -143,8 +143,8 @@ void action_tapping_process(keyrecord_t record) {
|
|||
# define TAP_GET_RETRO_TAPPING true
|
||||
# endif
|
||||
# define MAYBE_RETRO_SHIFTING(ev) (TAP_GET_RETRO_TAPPING && (RETRO_SHIFT + 0) != 0 && TIMER_DIFF_16((ev).time, tapping_key.event.time) < (RETRO_SHIFT + 0))
|
||||
# define TAP_IS_LT IS_LT(tapping_keycode)
|
||||
# define TAP_IS_MT IS_MT(tapping_keycode)
|
||||
# define TAP_IS_LT IS_QK_LAYER_TAP(tapping_keycode)
|
||||
# define TAP_IS_MT IS_QK_MOD_TAP(tapping_keycode)
|
||||
# define TAP_IS_RETRO IS_RETRO(tapping_keycode)
|
||||
# else
|
||||
# define TAP_GET_RETRO_TAPPING false
|
||||
|
|
|
@ -405,7 +405,7 @@ bool process_auto_shift(uint16_t keycode, keyrecord_t *record) {
|
|||
# elif defined(IGNORE_MOD_TAP_INTERRUPT)
|
||||
const bool is_hold_on_interrupt = false;
|
||||
# else
|
||||
const bool is_hold_on_interrupt = IS_MT(keycode);
|
||||
const bool is_hold_on_interrupt = IS_QK_MOD_TAP(keycode);
|
||||
# endif
|
||||
# endif
|
||||
if (IS_RETRO(keycode)
|
||||
|
|
|
@ -22,9 +22,8 @@
|
|||
# define AUTO_SHIFT_TIMEOUT 175
|
||||
#endif
|
||||
|
||||
#define IS_LT(kc) ((kc) >= QK_LAYER_TAP && (kc) <= QK_LAYER_TAP_MAX)
|
||||
#define IS_MT(kc) ((kc) >= QK_MOD_TAP && (kc) <= QK_MOD_TAP_MAX)
|
||||
#define IS_RETRO(kc) (IS_MT(kc) || IS_LT(kc))
|
||||
#define IS_RETRO(kc) (IS_QK_MOD_TAP(kc) || IS_QK_LAYER_TAP(kc))
|
||||
|
||||
#define DO_GET_AUTOSHIFT_TIMEOUT(keycode, record, ...) record
|
||||
// clang-format off
|
||||
#define AUTO_SHIFT_ALPHA KC_A ... KC_Z
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue