- .key = (keypos_t){ .row = r, .col = c },
- .pressed = (matrix_row & (1<<c)),
- .time = (timer_read() | 1) /* NOTE: 0 means no event */
+ .key = (key_t){ .row = r, .col = c },
+ .pressed = (matrix_row & ((matrix_row_t)1<<c)),
+ .time = (timer_read() | 1) /* time should not be 0 */