Skip to content

Commit

Permalink
qapi: rename InputAxis values.
Browse files Browse the repository at this point in the history
Lowercase them.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
  • Loading branch information
kraxel committed Mar 1, 2016
1 parent f22d0af commit 01df514
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions qapi-schema.json
Expand Up @@ -3753,12 +3753,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
Expand Down
4 changes: 2 additions & 2 deletions qmp-commands.hx
Expand Up @@ -4717,8 +4717,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
Expand Down
1 change: 0 additions & 1 deletion scripts/qapi.py
Expand Up @@ -66,7 +66,6 @@
'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
Expand Down

0 comments on commit 01df514

Please sign in to comment.