Re: [Qemu-devel] [RFC PATCH v3 1/8] kbd-state: add keyboard state tracker

2019-01-22 Thread Daniel P . Berrangé
On Tue, Jan 22, 2019 at 10:28:07AM +0100, Gerd Hoffmann wrote: > Now that most user interfaces are using QKeyCodes it is easier to have > common keyboard code useable by all user interfaces. > > This patch adds helper code to track the state of all keyboard keys, > using a bitmap indexed by QKeyCo

[Qemu-devel] [RFC PATCH v3 1/8] kbd-state: add keyboard state tracker

2019-01-22 Thread Gerd Hoffmann
Now that most user interfaces are using QKeyCodes it is easier to have common keyboard code useable by all user interfaces. This patch adds helper code to track the state of all keyboard keys, using a bitmap indexed by QKeyCode. Modifier state is tracked too, as separate bitmap. That makes check