notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fba90a
)
fix repeated redraw events
author
kub
<derkub@gmail.com>
Tue, 10 Sep 2024 20:28:51 +0000
(22:28 +0200)
committer
kub
<derkub@gmail.com>
Tue, 10 Sep 2024 20:28:51 +0000
(22:28 +0200)
input.c
patch
|
blob
|
blame
|
history
diff --git
a/input.c
b/input.c
index
4f91a55
..
4bf2e32
100644
(file)
--- a/
input.c
+++ b/
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) {
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;
+ }
drv = &DRV(in_devices[dev_id].drv_id);
goto finish;
}