Fix tap key using delaying_layer and waiting_key.

This commit is contained in:
tmk 2013-01-13 10:24:20 +09:00
parent 411de9cc22
commit 32633a42c7
5 changed files with 152 additions and 33 deletions

View file

@ -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);