From: Fabian Lesniak Date: Tue, 6 Dec 2016 19:00:05 +0000 (+0100) Subject: qapi: add support for mice with extra/side buttons X-Git-Tag: v2.9.0-rc0~121^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0095cc62b6803d5e2cb8cb27e5b14657d9dc0c95;p=thirdparty%2Fqemu.git qapi: add support for mice with extra/side buttons 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 Message-id: 20161206190007.7539-2-fabian@lesniak-it.de Signed-off-by: Gerd Hoffmann --- diff --git a/qapi-schema.json b/qapi-schema.json index 82fabc6e241..cbdffddbc62 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -5390,10 +5390,15 @@ # # 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: