From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO4Hb-0006VW-MG for qemu-devel@nongnu.org; Tue, 26 Jan 2016 09:07:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO4HY-0002vG-FF for qemu-devel@nongnu.org; Tue, 26 Jan 2016 09:07:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO4HY-0002vC-A8 for qemu-devel@nongnu.org; Tue, 26 Jan 2016 09:07:44 -0500 From: Gerd Hoffmann Date: Tue, 26 Jan 2016 15:07:34 +0100 Message-Id: <1453817255-10287-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1453817255-10287-1-git-send-email-kraxel@redhat.com> References: <1453817255-10287-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v2 4/5] qapi: rename input axises List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Roth , Marcelo Tosatti , Markus Armbruster , Gerd Hoffmann Lowercase them. Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange --- qapi-schema.json | 5 +---- qmp-commands.hx | 4 ++-- scripts/qapi.py | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 596d109..a269ea1 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3699,12 +3699,9 @@ # Position axis of a pointer input device (mouse, tablet). # # Since: 2.0 -# -# Note that the spelling of these values may change when the -# x-input-send-event is promoted out of experimental status. ## { 'enum' : 'InputAxis', - 'data' : [ 'X', 'Y' ] } + 'data' : [ 'x', 'y' ] } ## # @InputKeyEvent diff --git a/qmp-commands.hx b/qmp-commands.hx index 8a39839..636c2e6 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -4660,8 +4660,8 @@ Move mouse pointer to absolute coordinates (20000, 400). -> { "execute": "x-input-send-event" , "arguments": { "events": [ - { "type": "abs", "data" : { "axis": "X", "value" : 20000 } }, - { "type": "abs", "data" : { "axis": "Y", "value" : 400 } } ] } } + { "type": "abs", "data" : { "axis": "x", "value" : 20000 } }, + { "type": "abs", "data" : { "axis": "y", "value" : 400 } } ] } } <- { "return": {} } EQMP diff --git a/scripts/qapi.py b/scripts/qapi.py index 096fb24..4dcaf5a 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -66,7 +66,6 @@ case_whitelist = [ 'CpuInfoBase', # CPU, visible through query-cpu 'CpuInfoMIPS', # PC, visible through query-cpu 'CpuInfoTricore', # PC, visible through query-cpu - 'InputAxis', # TODO: drop when x-input-send-event is fixed 'QapiErrorClass', # all members, visible through errors 'UuidInfo', # UUID, visible through query-uuid 'X86CPURegister32', # all members, visible indirectly through qom-get -- 1.8.3.1