mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
sdl2: factor out sdl2_poll_events
Create a new function to poll and handle sdl2 events, which is then just called from the refresh timer. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
0d01b7ce61
commit
63ed4907cb
2 changed files with 14 additions and 10 deletions
|
@ -16,6 +16,7 @@ struct sdl2_console {
|
|||
void sdl2_window_create(struct sdl2_console *scon);
|
||||
void sdl2_window_destroy(struct sdl2_console *scon);
|
||||
void sdl2_window_resize(struct sdl2_console *scon);
|
||||
void sdl2_poll_events(struct sdl2_console *scon);
|
||||
|
||||
void sdl2_reset_keys(struct sdl2_console *scon);
|
||||
void sdl2_process_key(struct sdl2_console *scon,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue