X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvideo_output%2Fevent.h;h=0cb1042c556d8a2ee639925774c994e2d800ec4e;hb=5ce9dc48b8cfcb5d2827aa5c669b9643c36829ab;hp=948d317fd14f2902d8356425fa5021773339621b;hpb=4a95265a63091fee2bd7ef99ababec5ff0090b6d;p=vlc diff --git a/src/video_output/event.h b/src/video_output/event.h index 948d317fd1..0cb1042c55 100644 --- a/src/video_output/event.h +++ b/src/video_output/event.h @@ -79,6 +79,12 @@ static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button) case MOUSE_BUTTON_RIGHT: var_SetBool(vout->p_libvlc, "intf-popupmenu", true); break; + case MOUSE_BUTTON_WHEEL_UP: + vout_SendEventKey(vout, KEY_MOUSEWHEELUP); + break; + case MOUSE_BUTTON_WHEEL_DOWN: + vout_SendEventKey(vout, KEY_MOUSEWHEELDOWN); + break; } } static inline void vout_SendEventMouseReleased(vout_thread_t *vout, int button)