(XEGL) Implement wheel up/down for XEGL too

This commit is contained in:
twinaphex 2015-03-09 17:46:34 +01:00
parent 74332fbd14
commit e5de9494a5

View File

@ -135,6 +135,8 @@ static void gfx_ctx_xegl_swap_interval(void *data, unsigned interval)
}
}
void x_input_poll_wheel(void *data, XButtonEvent *event, bool latch);
static void gfx_ctx_xegl_check_window(void *data, bool *quit,
bool *resize, unsigned *width, unsigned *height, unsigned frame_count)
{
@ -184,6 +186,7 @@ static void gfx_ctx_xegl_check_window(void *data, bool *quit,
break;
case ButtonPress:
x_input_poll_wheel(driver.input_data, &event.xbutton, true);
break;
case ButtonRelease: