mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-07 17:39:03 +00:00
fix(core): improve simulation of lost TOUCH_START events
[no changelog]
This commit is contained in:
parent
a6bfe399ff
commit
b50e201ea5
@ -73,12 +73,8 @@ uint32_t touch_fsm_get_event(touch_fsm_t* fsm, uint32_t touch_state) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// We have missed the press down event, we have to simulate it.
|
// We have missed the press down event, we have to simulate it.
|
||||||
// But ensure we don't simulate TOUCH_START if touch_get_event() is not
|
|
||||||
// called frequently enough to not produce false events.
|
|
||||||
if (!starving) {
|
|
||||||
event = TOUCH_START | xy;
|
event = TOUCH_START | xy;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else if (touch_state & TOUCH_END) {
|
} else if (touch_state & TOUCH_END) {
|
||||||
if (fsm->pressed) {
|
if (fsm->pressed) {
|
||||||
// Finger was just lifted up
|
// Finger was just lifted up
|
||||||
|
Loading…
Reference in New Issue
Block a user