Re: [Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-12 Thread Markus Armbruster
Gerd Hoffmann writes: > Hi, > >> +.name = "mouse_move_abs", >> +.args_type = "dx_str:s,dy_str:s,dz_str:s?", >> +.params = "dx dy [dz]", >> +.help = "send mouse move events (absolute coordinates)", >> +.mhandler.cmd = do_mouse_move_abs, >>

Re: [Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-10 Thread Eric Blake
On 06/10/2014 02:25 AM, Gerd Hoffmann wrote: >QemuConsole *con = NULL; >if (qdict_get_try_str(qdict, "console")) { > con = qemu_console_lookup_by_index(...) > > That's a new hmp-only command tough. IIRC there is (or was?) a policy > that no new hmp-only commands are allowed. Luiz?

Re: [Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-10 Thread Gerd Hoffmann
Hi, > You want console parameter to be console index? Is that visible via > monitor? The consoles are visible in the qom tree, under /backend/console[$index]. They have a device link and head property, so you can figure which console belongs to which device and display. I think using a consol

Re: [Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-10 Thread Marcelo Tosatti
On Tue, Jun 10, 2014 at 08:48:23AM -0300, Marcelo Tosatti wrote: > On Tue, Jun 10, 2014 at 10:25:47AM +0200, Gerd Hoffmann wrote: > > Hi, > > > > > +.name = "mouse_move_abs", > > > +.args_type = "dx_str:s,dy_str:s,dz_str:s?", > > > +.params = "dx dy [dz]", > >

Re: [Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-10 Thread Marcelo Tosatti
On Tue, Jun 10, 2014 at 10:25:47AM +0200, Gerd Hoffmann wrote: > Hi, > > > +.name = "mouse_move_abs", > > +.args_type = "dx_str:s,dy_str:s,dz_str:s?", > > +.params = "dx dy [dz]", > > +.help = "send mouse move events (absolute coordinates)", > > +

Re: [Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-10 Thread Gerd Hoffmann
Hi, > +.name = "mouse_move_abs", > +.args_type = "dx_str:s,dy_str:s,dz_str:s?", > +.params = "dx dy [dz]", > +.help = "send mouse move events (absolute coordinates)", > +.mhandler.cmd = do_mouse_move_abs, > +}, > + > +STEXI > +@item mo

[Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-05 Thread Marcelo Tosatti
Add monitor command to change mouse cursor position when input device is in absolute mode. Signed-off-by: Marcelo Tosatti --- hmp-commands.hx | 22 +++--- monitor.c | 35 ++- 2 files changed, 53 insertions(+), 4 deletions(-) Index: qe