static void legacy_kbd_event(DeviceState *dev, QemuConsole *src,

                             InputEvent *evt)

{

    QEMUPutKbdEntry *entry = (QEMUPutKbdEntry *)dev;

    int scancodes[3], i, count;



    if (!entry || !entry->put_kbd) {

        return;

    }

    count = qemu_input_key_value_to_scancode(evt->key->key,

                                             evt->key->down,

                                             scancodes);

    for (i = 0; i < count; i++) {

        entry->put_kbd(entry->opaque, scancodes[i]);

    }

}

static void legacy_kbd_event(DeviceState *dev, QemuConsole *src,

                             InputEvent *evt)

{

    QEMUPutKbdEntry *entry = (QEMUPutKbdEntry *)dev;

    int scancodes[3], i, count;



    if (!entry || !entry->put_kbd) {

        return;

    }

    count = qemu_input_key_value_to_scancode(evt->key->key,

                                             evt->key->down,

                                             scancodes);

    for (i = 0; i < count; i++) {

        entry->put_kbd(entry->opaque, scancodes[i]);

    }

}

static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,

                             InputEvent *VAR_2)

{

    QEMUPutKbdEntry *entry = (QEMUPutKbdEntry *)VAR_0;

    int VAR_3[3], VAR_4, VAR_5;



    if (!entry || !entry->put_kbd) {

        return;

    }

    VAR_5 = qemu_input_key_value_to_scancode(VAR_2->key->key,

                                             VAR_2->key->down,

                                             VAR_3);

    for (VAR_4 = 0; VAR_4 < VAR_5; VAR_4++) {

        entry->put_kbd(entry->opaque, VAR_3[VAR_4]);

    }

}

static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,
InputEvent *VAR_2)
{ QEMUPutKbdEntry *entry = (QEMUPutKbdEntry *)VAR_0; int VAR_3[3], VAR_4, VAR_5; if (!entry || !entry->put_kbd) { return; } VAR_5 = qemu_input_key_value_to_scancode(VAR_2->key->key,
VAR_2->key->down,
VAR_3); for (VAR_4 = 0; VAR_4 < VAR_5; VAR_4++) { entry->put_kbd(entry->opaque, VAR_3[VAR_4]); } }