diff mbox

[6/7] qapi: rename input axises

Message ID 1452601779-5790-6-git-send-email-kraxel@redhat.com
State New
Headers show

Commit Message

Gerd Hoffmann Jan. 12, 2016, 12:29 p.m. UTC
Lowercase them.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 qapi-schema.json | 5 +----
 qmp-commands.hx  | 4 ++--
 2 files changed, 3 insertions(+), 6 deletions(-)

Comments

Daniel P. Berrangé Jan. 12, 2016, 12:50 p.m. UTC | #1
On Tue, Jan 12, 2016 at 01:29:38PM +0100, Gerd Hoffmann wrote:
> Lowercase them.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  qapi-schema.json | 5 +----
>  qmp-commands.hx  | 4 ++--
>  2 files changed, 3 insertions(+), 6 deletions(-)

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>

Regards,
Daniel
diff mbox

Patch

diff --git a/qapi-schema.json b/qapi-schema.json
index 511702f..35ef71c 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3672,12 +3672,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 00bf6df..b9154b5 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