OSDN Git Service

kbd-state: use state tracker for sdl2
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Jan 2019 09:28:09 +0000 (10:28 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 5 Feb 2019 09:45:44 +0000 (10:45 +0100)
commit07333e1ca382ed570d781a99ee8c168cb8b252d0
tree43ef04392035a82df938d6142feb7951bfdb7eee
parent85b03694e1843141eaf851fb15300ae12cc76468
kbd-state: use state tracker for sdl2

Use the new keyboard state tracked for sdl2.  We can drop the modifier
state tracking from sdl2.  Also keyup code is simpler, the state tracker
will take care to not send suspious keyup events to the guest.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20190122092814.14919-4-kraxel@redhat.com
include/ui/sdl2.h
ui/sdl2-input.c
ui/sdl2.c