aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-11-12 08:01:27 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-12-17 12:44:01 +0100
commit63ed4907cb4cfacf1f875f938037af9c75afa453 (patch)
tree6240caaace3816d8994c5c7e102b2033ada7c52f /include
parent0d01b7ce617b5f511c852ad770fd7fdce6bf353d (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/ui/sdl2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
index d0ce0b0f9c..bda60f8b93 100644
--- a/include/ui/sdl2.h
+++ b/include/ui/sdl2.h
@@ -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,