mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
fix repeated redraw events
This commit is contained in:
parent
9fba90ac32
commit
65f8fc5e39
1 changed files with 6 additions and 1 deletions
7
input.c
7
input.c
|
@ -357,8 +357,13 @@ int in_update_keycode(int *dev_id_out, int *is_down_out, char *charcode, int tim
|
||||||
|
|
||||||
if (in_have_async_devs) {
|
if (in_have_async_devs) {
|
||||||
result = in_update_kc_async(&dev_id, &is_down, timeout_ms);
|
result = in_update_kc_async(&dev_id, &is_down, timeout_ms);
|
||||||
if (result == -1)
|
if (result == -1) {
|
||||||
|
#ifdef SDL_REDRAW_EVT
|
||||||
|
// no key up event for RDRAW, clear to avoid key repeat
|
||||||
|
menu_key_state &= ~PBTN_RDRAW;
|
||||||
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
drv = &DRV(in_devices[dev_id].drv_id);
|
drv = &DRV(in_devices[dev_id].drv_id);
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue