mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-06 23:28:04 -04:00
add some support for handling redraw events
This commit is contained in:
parent
c722861112
commit
bededcb4be
4 changed files with 44 additions and 11 deletions
3
input.c
3
input.c
|
@ -462,6 +462,9 @@ int in_menu_wait(int interesting, char *charcode, int autorep_delay_ms)
|
|||
wait = autorep_delay_ms;
|
||||
|
||||
/* wait until either key repeat or a new key has been pressed */
|
||||
#ifdef SDL_REDRAW_EVT
|
||||
interesting |= PBTN_RDRAW;
|
||||
#endif
|
||||
do {
|
||||
ret = in_menu_wait_any(charcode, wait);
|
||||
if (ret == 0 || ret != menu_key_prev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue