forked from mirrors/qmk_userspace
Fix tap key using delaying_layer and waiting_key.
This commit is contained in:
parent
411de9cc22
commit
32633a42c7
5 changed files with 152 additions and 33 deletions
|
@ -68,7 +68,7 @@ void keyboard_task(void)
|
|||
action_exec((keyevent_t){
|
||||
.key = (keypos_t){ .row = r, .col = c },
|
||||
.pressed = (matrix_row & (1<<c)),
|
||||
.time = timer_read()
|
||||
.time = (timer_read() | 1) /* NOTE: 0 means no event */
|
||||
});
|
||||
// record a processed key
|
||||
matrix_prev[r] ^= (1<<c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue