sdl2: factor out sdl2_poll_events
commit63ed4907cb4cfacf1f875f938037af9c75afa453
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Nov 2014 07:01:27 +0000 (12 08:01 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Dec 2014 11:44:01 +0000 (17 12:44 +0100)
tree6240caaace3816d8994c5c7e102b2033ada7c52f
parent0d01b7ce617b5f511c852ad770fd7fdce6bf353d
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>
include/ui/sdl2.h
ui/sdl2.c