qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] add input-send-event command


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2] add input-send-event command
Date: Tue, 17 Jun 2014 11:05:39 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 06/17/2014 10:22 AM, Marcelo Tosatti wrote:
> 
> Which allows specification of absolute/relative,
> up/down and console parameters.
> 
> Suggested by Gerd Hoffman.
> 
> Signed-off-by: Marcelo Tosatti <address@hidden>
> 
> ---
>  qapi-schema.json |   18 +++++++++++++++
>  qmp-commands.hx  |   63 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  ui/input.c       |   31 +++++++++++++++++++++++++++
>  3 files changed, 112 insertions(+)

> +
> +Example (1):
> +
> +Press left mouse button.

Maybe:

Press, then later release, left mouse button.

> +
> +-> { "execute": "input-send-event",
> +    "arguments": { "console": 0,
> +                   "events": [ { "type": "btn",
> +                    "data" : { "down": true, "button": "Left" } } } }
> +<- { "return": {} }
> +
> +-> { "execute": "input-send-event",
> +    "arguments": { "console": 0,
> +                   "events": [ { "type": "btn",
> +                    "data" : { "down": false, "button": "Left" } } } }
> +<- { "return": {} }

to make it clear that both command/response sequences are part of the
same example.

but that's cosmetic, so whether or not you change it, I can live with:

Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]