aboutsummaryrefslogtreecommitdiff
path: root/ui/ui-hmp-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui-hmp-cmds.c')
-rw-r--r--ui/ui-hmp-cmds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/ui-hmp-cmds.c b/ui/ui-hmp-cmds.c
index 7ca80c8..5c456ec 100644
--- a/ui/ui-hmp-cmds.c
+++ b/ui/ui-hmp-cmds.c
@@ -69,6 +69,14 @@ void hmp_mouse_button(Monitor *mon, const QDict *qdict)
mouse_button_state = button_state;
}
+void hmp_mouse_set(Monitor *mon, const QDict *qdict)
+{
+ Error *err = NULL;
+
+ qemu_mouse_set(qdict_get_int(qdict, "index"), &err);
+ hmp_handle_error(mon, err);
+}
+
void hmp_info_mice(Monitor *mon, const QDict *qdict)
{
MouseInfoList *mice_list, *mouse;