diff options
| author | Joel Challis | 2023-11-26 19:36:45 +0100 |
|---|---|---|
| committer | GitHub | 2023-11-26 19:36:45 +0100 |
| commit | 1ed03f498fa204178c2696c510ac6a2cd8524e2d (patch) | |
| tree | b97c1f983b7e4b57c007d0feedadd3ad3e39062b /users/d4mation/tap-hold.c | |
| parent | 4908d4b1ca260efecf3613e6517aa3a6f2034876 (diff) | |
Remove userspace keymaps (#22544)
Diffstat (limited to 'users/d4mation/tap-hold.c')
| -rw-r--r-- | users/d4mation/tap-hold.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/users/d4mation/tap-hold.c b/users/d4mation/tap-hold.c deleted file mode 100644 index 0c5119f995..0000000000 --- a/users/d4mation/tap-hold.c +++ /dev/null @@ -1,28 +0,0 @@ -#include "tap-hold.h" - -#ifndef TAP_HOLD_TIME -#define TAP_HOLD_TIME 200 -#endif - -uint16_t tap_hold_timer; - -void tap_or_hold( keyrecord_t *record, uint16_t tap, uint16_t hold ) { - - if ( record->event.pressed ) { - tap_hold_timer = timer_read(); - } else { - - if ( tap_hold_timer && - timer_elapsed( tap_hold_timer ) > TAP_HOLD_TIME ) { - /* Held down then released */ - tap_code( hold ); - } else { - /* Quickly Tapped */ - tap_code( tap ); - } - - tap_hold_timer = 0; - - } - -}
\ No newline at end of file |