aboutsummaryrefslogtreecommitdiff
path: root/common/keyboard.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-27 02:42:48 +0900
committertmk <nobody@nowhere>2013-01-27 02:42:48 +0900
commitef873791bdbff5cc6971705544e120c69ca94212 (patch)
tree653a1959260642ea6cb31bf9c92aaa75392b6c39 /common/keyboard.c
parentd8dddf9f25181e29e3fb82250833a00a11921452 (diff)
downloadqmk_firmware-ef873791bdbff5cc6971705544e120c69ca94212.tar.gz
qmk_firmware-ef873791bdbff5cc6971705544e120c69ca94212.zip
New tapping logic.
Diffstat (limited to 'common/keyboard.c')
-rw-r--r--common/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/keyboard.c b/common/keyboard.c
index 1aff81f54..2422fb758 100644
--- a/common/keyboard.c
+++ b/common/keyboard.c
@@ -80,7 +80,7 @@ void keyboard_task(void)
80 action_exec((keyevent_t){ 80 action_exec((keyevent_t){
81 .key.pos = (keypos_t){ .row = r, .col = c }, 81 .key.pos = (keypos_t){ .row = r, .col = c },
82 .pressed = (matrix_row & (1<<c)), 82 .pressed = (matrix_row & (1<<c)),
83 .time = (timer_read() | 1) /* NOTE: 0 means no event */ 83 .time = timer_read()
84 }); 84 });
85 // record a processed key 85 // record a processed key
86 matrix_prev[r] ^= ((matrix_row_t)1<<c); 86 matrix_prev[r] ^= ((matrix_row_t)1<<c);
@@ -90,8 +90,8 @@ void keyboard_task(void)
90 } 90 }
91 } 91 }
92 } 92 }
93 // call with not real event to update state of aciton 93 // call with pseudo tick event when no real key event.
94 action_exec(NOEVENT); 94 action_exec(TICK);
95 95
96MATRIX_LOOP_END: 96MATRIX_LOOP_END:
97 97