qapi: add support for mice with extra/side buttons
authorFabian Lesniak <fabian@lesniak-it.de>
Tue, 6 Dec 2016 19:00:05 +0000 (20:00 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 31 Jan 2017 07:14:51 +0000 (08:14 +0100)
Adds "side" and "extra" values to enum InputButton. The naming was borrowed
from evdev since it is more descriptive than "button4" and "button5".

Signed-off-by: Fabian Lesniak <fabian@lesniak-it.de>
Message-id: 20161206190007.7539-2-fabian@lesniak-it.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qapi-schema.json

index 82fabc6e2418ea89d47a29cc2b1393ac3419c0ea..cbdffddbc6275bed20d81a50a501247ecf33abb3 100644 (file)
 #
 # Button of a pointer input device (mouse, tablet).
 #
+# @side: front side button of a 5-button mouse (since 2.9)
+#
+# @extra: rear side button of a 5-button mouse (since 2.9)
+#
 # Since: 2.0
 ##
 { 'enum'  : 'InputButton',
-  'data'  : [ 'left', 'middle', 'right', 'wheel-up', 'wheel-down' ] }
+  'data'  : [ 'left', 'middle', 'right', 'wheel-up', 'wheel-down', 'side',
+  'extra' ] }
 
 ##
 # @InputAxis: