void do_mouse_set(Monitor *mon, const QDict *qdict)

{

    QemuInputHandlerState *s;

    int index = qdict_get_int(qdict, "index");

    int found = 0;



    QTAILQ_FOREACH(s, &handlers, node) {

        if (s->id == index) {

            found = 1;

            qemu_input_handler_activate(s);

            break;

        }

    }



    if (!found) {

        monitor_printf(mon, "Mouse at given index not found\n");

    }



    qemu_input_check_mode_change();

}

void do_mouse_set(Monitor *mon, const QDict *qdict)

{

    QemuInputHandlerState *s;

    int index = qdict_get_int(qdict, "index");

    int found = 0;



    QTAILQ_FOREACH(s, &handlers, node) {

        if (s->id == index) {

            found = 1;

            qemu_input_handler_activate(s);

            break;

        }

    }



    if (!found) {

        monitor_printf(mon, "Mouse at given index not found\n");

    }



    qemu_input_check_mode_change();

}

void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)

{

    QemuInputHandlerState *s;

    int VAR_2 = qdict_get_int(VAR_1, "VAR_2");

    int VAR_3 = 0;



    QTAILQ_FOREACH(s, &handlers, node) {

        if (s->id == VAR_2) {

            VAR_3 = 1;

            qemu_input_handler_activate(s);

            break;

        }

    }



    if (!VAR_3) {

        monitor_printf(VAR_0, "Mouse at given VAR_2 not VAR_3\n");

    }



    qemu_input_check_mode_change();

}

void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{ QemuInputHandlerState *s; int VAR_2 = qdict_get_int(VAR_1, "VAR_2"); int VAR_3 = 0; QTAILQ_FOREACH(s, &handlers, node) { if (s->id == VAR_2) { VAR_3 = 1; qemu_input_handler_activate(s); break; } } if (!VAR_3) { monitor_printf(VAR_0, "Mouse at given VAR_2 not VAR_3\n"); } qemu_input_check_mode_change(); }