qmp-commands: move 'query-mice' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
3c3ea00a8c
commit
60639df5c2
@ -2229,41 +2229,6 @@ Example:
|
||||
|
||||
Note: This example has been shortened as the real response is too long.
|
||||
|
||||
query-mice
|
||||
----------
|
||||
|
||||
Show VM mice information.
|
||||
|
||||
Each mouse is represented by a json-object, the returned value is a json-array
|
||||
of all mice.
|
||||
|
||||
The mouse json-object contains the following:
|
||||
|
||||
- "name": mouse's name (json-string)
|
||||
- "index": mouse's index (json-int)
|
||||
- "current": true if this mouse is receiving events, false otherwise (json-bool)
|
||||
- "absolute": true if the mouse generates absolute input events (json-bool)
|
||||
|
||||
Example:
|
||||
|
||||
-> { "execute": "query-mice" }
|
||||
<- {
|
||||
"return":[
|
||||
{
|
||||
"name":"QEMU Microsoft Mouse",
|
||||
"index":0,
|
||||
"current":false,
|
||||
"absolute":false
|
||||
},
|
||||
{
|
||||
"name":"QEMU PS/2 Mouse",
|
||||
"index":1,
|
||||
"current":true,
|
||||
"absolute":true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
query-vnc
|
||||
---------
|
||||
|
||||
|
@ -1187,6 +1187,26 @@
|
||||
# Returns: a list of @MouseInfo for each device
|
||||
#
|
||||
# Since: 0.14.0
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# -> { "execute": "query-mice" }
|
||||
# <- { "return": [
|
||||
# {
|
||||
# "name":"QEMU Microsoft Mouse",
|
||||
# "index":0,
|
||||
# "current":false,
|
||||
# "absolute":false
|
||||
# },
|
||||
# {
|
||||
# "name":"QEMU PS/2 Mouse",
|
||||
# "index":1,
|
||||
# "current":true,
|
||||
# "absolute":true
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
#
|
||||
##
|
||||
{ 'command': 'query-mice', 'returns': ['MouseInfo'] }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user