aboutsummaryrefslogtreecommitdiffstats
path: root/common/keyboard.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-15 00:06:52 +0900
committertmk <nobody@nowhere>2013-01-15 00:55:16 +0900
commitf609712da3b94ea36612a6f210bd6ce902b74631 (patch)
tree8fe37ac58b1fabf1d960cfe091c118b06ff2f00e /common/keyboard.c
parent32633a42c74c65462370ef4a39a44a5784a98a06 (diff)
downloadfirmware-f609712da3b94ea36612a6f210bd6ce902b74631.tar.gz
firmware-f609712da3b94ea36612a6f210bd6ce902b74631.tar.bz2
firmware-f609712da3b94ea36612a6f210bd6ce902b74631.zip
Fix waiting_keys and periodical update for delaying layer.
Diffstat (limited to 'common/keyboard.c')
-rw-r--r--common/keyboard.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/keyboard.c b/common/keyboard.c
index 4e955e129..2e32e91e0 100644
--- a/common/keyboard.c
+++ b/common/keyboard.c
@@ -78,7 +78,14 @@ void keyboard_task(void)
}
}
}
- MATRIX_LOOP_END:
+ // call to update delaying layer when no real event
+ action_exec((keyevent_t) {
+ .key = (keypos_t){ .row = 255, .col = 255 }, // assume this key doesn't exist
+ .pressed = false,
+ .time = 0,
+ });
+
+MATRIX_LOOP_END:
#ifdef MOUSEKEY_ENABLE
// mousekey repeat & acceleration