diff options
Diffstat (limited to 'common/keyboard.c')
| -rw-r--r-- | common/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/keyboard.c b/common/keyboard.c index 2e32e91e0..ea4d0ee7e 100644 --- a/common/keyboard.c +++ b/common/keyboard.c | |||
| @@ -66,7 +66,7 @@ void keyboard_task(void) | |||
| 66 | for (int c = 0; c < MATRIX_COLS; c++) { | 66 | for (int c = 0; c < MATRIX_COLS; c++) { |
| 67 | if (matrix_change & (1<<c)) { | 67 | if (matrix_change & (1<<c)) { |
| 68 | action_exec((keyevent_t){ | 68 | action_exec((keyevent_t){ |
| 69 | .key = (keypos_t){ .row = r, .col = c }, | 69 | .key.pos = (keypos_t){ .row = r, .col = c }, |
| 70 | .pressed = (matrix_row & (1<<c)), | 70 | .pressed = (matrix_row & (1<<c)), |
| 71 | .time = (timer_read() | 1) /* NOTE: 0 means no event */ | 71 | .time = (timer_read() | 1) /* NOTE: 0 means no event */ |
| 72 | }); | 72 | }); |
| @@ -80,7 +80,7 @@ void keyboard_task(void) | |||
| 80 | } | 80 | } |
| 81 | // call to update delaying layer when no real event | 81 | // call to update delaying layer when no real event |
| 82 | action_exec((keyevent_t) { | 82 | action_exec((keyevent_t) { |
| 83 | .key = (keypos_t){ .row = 255, .col = 255 }, // assume this key doesn't exist | 83 | .key.pos = (keypos_t){ .row = 255, .col = 255 }, // assume this key doesn't exist |
| 84 | .pressed = false, | 84 | .pressed = false, |
| 85 | .time = 0, | 85 | .time = 0, |
| 86 | }); | 86 | }); |
