static void handle_mousewheel(SDL_Event *ev)

{

    struct sdl2_console *scon = get_scon_from_window(ev->key.windowID);

    SDL_MouseWheelEvent *wev = &ev->wheel;

    InputButton btn;



    if (wev->y > 0) {

        btn = INPUT_BUTTON_WHEEL_UP;

    } else if (wev->y < 0) {

        btn = INPUT_BUTTON_WHEEL_DOWN;

    } else {

        return;

    }



    qemu_input_queue_btn(scon->dcl.con, btn, true);

    qemu_input_event_sync();

    qemu_input_queue_btn(scon->dcl.con, btn, false);

    qemu_input_event_sync();

}

static void handle_mousewheel(SDL_Event *ev)

{

    struct sdl2_console *scon = get_scon_from_window(ev->key.windowID);

    SDL_MouseWheelEvent *wev = &ev->wheel;

    InputButton btn;



    if (wev->y > 0) {

        btn = INPUT_BUTTON_WHEEL_UP;

    } else if (wev->y < 0) {

        btn = INPUT_BUTTON_WHEEL_DOWN;

    } else {

        return;

    }



    qemu_input_queue_btn(scon->dcl.con, btn, true);

    qemu_input_event_sync();

    qemu_input_queue_btn(scon->dcl.con, btn, false);

    qemu_input_event_sync();

}

static void FUNC_0(SDL_Event *VAR_0)

{

    struct sdl2_console *VAR_1 = get_scon_from_window(VAR_0->key.windowID);

    SDL_MouseWheelEvent *wev = &VAR_0->wheel;

    InputButton btn;



    if (wev->y > 0) {

        btn = INPUT_BUTTON_WHEEL_UP;

    } else if (wev->y < 0) {

        btn = INPUT_BUTTON_WHEEL_DOWN;

    } else {

        return;

    }



    qemu_input_queue_btn(VAR_1->dcl.con, btn, true);

    qemu_input_event_sync();

    qemu_input_queue_btn(VAR_1->dcl.con, btn, false);

    qemu_input_event_sync();

}

static void FUNC_0(SDL_Event *VAR_0)
{ struct sdl2_console *VAR_1 = get_scon_from_window(VAR_0->key.windowID); SDL_MouseWheelEvent *wev = &VAR_0->wheel; InputButton btn; if (wev->y > 0) { btn = INPUT_BUTTON_WHEEL_UP; } else if (wev->y < 0) { btn = INPUT_BUTTON_WHEEL_DOWN; } else { return; } qemu_input_queue_btn(VAR_1->dcl.con, btn, true); qemu_input_event_sync(); qemu_input_queue_btn(VAR_1->dcl.con, btn, false); qemu_input_event_sync(); }