From: Marcelo Tosatti <mtosatti@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: Luiz Capitulino <lcapitulino@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] add input-send-event command
Date: Tue, 17 Jun 2014 10:41:23 -0300 [thread overview]
Message-ID: <20140617134123.GA16748@amt.cnet> (raw)
In-Reply-To: <53A02C7B.2010901@redhat.com>
On Tue, Jun 17, 2014 at 05:54:35AM -0600, Eric Blake wrote:
> On 06/17/2014 03:02 AM, Gerd Hoffmann wrote:
> > On Mo, 2014-06-16 at 20:15 -0300, Marcelo Tosatti wrote:
> >> Which allows specification of absolute/relative,
> >> up/down and console parameters.
> >
> > Looks good overall, only minor nits. Will wait for acks from qmp guys
> > before picking into input branch.
> >
> >> Suggested by Gerd Hoffman.
> >
> > Huh? Signed-off missing ...
> >
> >> +Press left mouse button.
> >> +
> >> +-> { "execute": "input-send-event",
> >> + "arguments": { "console": 0,
> >> + "events": [ { "type": "btn",
> >> + "data" : { "down": true, "button": "Left" } },
> >> + { "type": "btn",
> >> + "data" : { "down": false, "button": "Left" } } ] } }
> >> +<- { "return": {} }
> >
> > Bad example. Down + up should go as separate commands (so you have a
> > sync inbetween), otherwise it might happen that the guest doesn't see
> > the button event at all.
>
> Would it be worth adding a command to the union of possible events that
> adds a pause? As in:
>
> -> { "execute": "input-send-event",
> "arguments": { "console": 0,
> "events": [
> { "type": "btn",
> "data" : { "down": true, "button": "Left" } },
> { "type": "pause", "data": { "duration": 10 } },
> { "type": "btn",
> "data" : { "down": false, "button": "Left" } } ] } }
>
> that sticks a 10 ms delay between the other two events?
Would rather have the user wait 10 ms in between QMP commands.
next prev parent reply other threads:[~2014-06-17 13:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-16 23:15 [Qemu-devel] [PATCH] add input-send-event command Marcelo Tosatti
2014-06-17 9:02 ` Gerd Hoffmann
2014-06-17 11:54 ` Eric Blake
2014-06-17 13:41 ` Marcelo Tosatti [this message]
2014-06-17 11:59 ` Eric Blake
2014-06-17 13:46 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140617134123.GA16748@amt.cnet \
--to=mtosatti@redhat.com \
--cc=eblake@redhat.com \
--cc=kraxel@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).