summaryrefslogtreecommitdiff
path: root/common/keyboard.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-17 15:00:41 +0900
committertmk <nobody@nowhere>2013-01-17 15:02:34 +0900
commitee7ce433357a1c1bbcaba54525fc5b5b5404aa82 (patch)
tree287fd6ef79a45680bcdb5ebf98524d9d1428e087 /common/keyboard.c
parent567b2ae5259634a5293afbc6a710a19d7c45dcda (diff)
Refactor struct keyevent_t.
Diffstat (limited to 'common/keyboard.c')
-rw-r--r--common/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/keyboard.c b/common/keyboard.c
index 2e32e91e08..ea4d0ee7e6 100644
--- a/common/keyboard.c
+++ b/common/keyboard.c
@@ -66,7 +66,7 @@ void keyboard_task(void)
for (int c = 0; c < MATRIX_COLS; c++) {
if (matrix_change & (1<<c)) {
action_exec((keyevent_t){
- .key = (keypos_t){ .row = r, .col = c },
+ .key.pos = (keypos_t){ .row = r, .col = c },
.pressed = (matrix_row & (1<<c)),
.time = (timer_read() | 1) /* NOTE: 0 means no event */
});
@@ -80,7 +80,7 @@ void keyboard_task(void)
}
// 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
+ .key.pos = (keypos_t){ .row = 255, .col = 255 }, // assume this key doesn't exist
.pressed = false,
.time = 0,
});