Change struct key_t

This commit is contained in:
tmk 2013-02-13 12:16:24 +09:00
parent 9bc82bf61c
commit c4421f585b
6 changed files with 9 additions and 15 deletions

View file

@ -85,7 +85,7 @@ void keyboard_task(void)
for (uint8_t c = 0; c < MATRIX_COLS; c++) {
if (matrix_change & ((matrix_row_t)1<<c)) {
action_exec((keyevent_t){
.key.pos = (keypos_t){ .row = r, .col = c },
.key = (key_t){ .row = r, .col = c },
.pressed = (matrix_row & (1<<c)),
.time = (timer_read() | 1) /* time should not be 0 */
});