input: qapi: define event types
commit031fa964399d3ed9090acc1378b65eee2633a5eb
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 27 Nov 2013 08:08:40 +0000 (27 09:08 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Mar 2014 08:50:17 +0000 (5 09:50 +0100)
tree32c7c3f3d9b0567eaaae1a51d318ff8b65c72404
parent7ad95ff76ccc11c702ca8edcb01a95938eb7ffcd
input: qapi: define event types

Define input event types, using qapi.  So we get nicely autogenerated
types for our input events.  And when it comes to qmp support some day
things will be a lot easier.

Types are modeled after the linux input layer.  There are separate
event types for each value.  There is a sync to indicate the end
of a event group.

Mouse events are split into motion events (one for each axis) and
button events, which are grouped by sync.

Keyboard events are using the existing KeyValue type.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
qapi-schema.json