From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwwpR-0006iK-MM for qemu-devel@nongnu.org; Tue, 17 Jun 2014 13:05:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwwpK-0002K8-TT for qemu-devel@nongnu.org; Tue, 17 Jun 2014 13:05:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwwpK-0002Jr-Be for qemu-devel@nongnu.org; Tue, 17 Jun 2014 13:05:42 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5HH5e42011128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Jun 2014 13:05:41 -0400 Message-ID: <53A07563.5020606@redhat.com> Date: Tue, 17 Jun 2014 11:05:39 -0600 From: Eric Blake MIME-Version: 1.0 References: <20140617162209.GA6405@amt.cnet> In-Reply-To: <20140617162209.GA6405@amt.cnet> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MOX19huQ2retmU54GD6q5A4IdIFroAScv" Subject: Re: [Qemu-devel] [PATCH v2] add input-send-event command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti , Gerd Hoffmann Cc: emu-devel , Luiz Capitulino This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MOX19huQ2retmU54GD6q5A4IdIFroAScv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/17/2014 10:22 AM, Marcelo Tosatti wrote: >=20 > Which allows specification of absolute/relative, > up/down and console parameters. >=20 > Suggested by Gerd Hoffman. >=20 > Signed-off-by: Marcelo Tosatti >=20 > --- > 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 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --MOX19huQ2retmU54GD6q5A4IdIFroAScv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJToHVjAAoJEKeha0olJ0NqsxMH/AuucFUUBnVwK+UjCsT2aYoV FyI7/HPsttDzcceyiSl51Mh7S0IE2H80nYIFBo6I4zrjleu6GZT93DWdwVqXpSHW +hBbWt1rZgAQN58miJgrPHpIesHcF/rW6lkfzySxUrd53PROz0ru/IflrGOrMUF8 +QAtWeOLI+3vLliE3LkakHQ2GmVet71OFx8FaLDND4PuuTX/y41YINXOFjG+7WTP MIoRcUeRuYg63j4aJXS+0B/MHOrDkkGZAKH691ps3nFxaWVeqIjldNhoV4UugSWH VF/NSRDuQV2EuV35r7OJAIOlLVIrBci88jnHm/friFqIaSwAqt1XnpU26yD/A5c= =YIsG -----END PGP SIGNATURE----- --MOX19huQ2retmU54GD6q5A4IdIFroAScv--