diff options
author | tmk <nobody@nowhere> | 2013-01-27 02:42:48 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-01-27 02:42:48 +0900 |
commit | ef873791bdbff5cc6971705544e120c69ca94212 (patch) | |
tree | 653a1959260642ea6cb31bf9c92aaa75392b6c39 /common/keyboard.c | |
parent | d8dddf9f25181e29e3fb82250833a00a11921452 (diff) |
New tapping logic.
Diffstat (limited to 'common/keyboard.c')
-rw-r--r-- | common/keyboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/keyboard.c b/common/keyboard.c index 1aff81f54c..2422fb758f 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -80,7 +80,7 @@ void keyboard_task(void) action_exec((keyevent_t){ .key.pos = (keypos_t){ .row = r, .col = c }, .pressed = (matrix_row & (1<<c)), - .time = (timer_read() | 1) /* NOTE: 0 means no event */ + .time = timer_read() }); // record a processed key matrix_prev[r] ^= ((matrix_row_t)1<<c); @@ -90,8 +90,8 @@ void keyboard_task(void) } } } - // call with not real event to update state of aciton - action_exec(NOEVENT); + // call with pseudo tick event when no real key event. + action_exec(TICK); MATRIX_LOOP_END: |