[Core] Refactor keyevent_t for 1ms timing resolution (#15847)

This commit is contained in:
Stefan Kerkmann
2023-04-03 10:33:45 +02:00
committed by GitHub
parent 2d9140af53
commit fcf8b804ed
49 changed files with 360 additions and 273 deletions

View File

@@ -111,7 +111,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
key.row = 1;
key.col = 0;
}
action_exec((keyevent_t){.key = key, .pressed = true, .time = (timer_read() | 1)});
action_exec((keyevent_t){.key = key, .pressed = false, .time = (timer_read() | 1)});
action_exec(MAKE_KEYEVENT(key.row, key.col, true));
action_exec(MAKE_KEYEVENT(key.row, key.col, false));
return true;
}

View File

@@ -96,7 +96,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
key.row = 1;
key.col = 0;
}
action_exec((keyevent_t){.key = key, .pressed = true, .time = (timer_read() | 1)});
action_exec((keyevent_t){.key = key, .pressed = false, .time = (timer_read() | 1)});
action_exec(MAKE_KEYEVENT(key.row, key.col, true));
action_exec(MAKE_KEYEVENT(key.row, key.col, false));
return true;
}