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,
>>
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?
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
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]",
> >
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)",
> > +
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
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