(XVideo) Implement mouse wheel up/down for Xvideo too

This commit is contained in:
twinaphex 2015-03-09 17:48:24 +01:00
parent e5de9494a5
commit 9970768dd2

View File

@ -778,6 +778,8 @@ static bool xv_frame(void *data, const void *frame, unsigned width,
return true;
}
void x_input_poll_wheel(void *data, XButtonEvent *event, bool latch);
static bool xv_alive(void *data)
{
XEvent event;
@ -805,6 +807,7 @@ static bool xv_alive(void *data)
break;
case ButtonPress:
x_input_poll_wheel(driver.input_data, &event.xbutton, true);
break;
case ButtonRelease:
break;