]> git.sesse.net Git - vlc/commitdiff
Vout: Correctly handle the mousewheeling
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 4 May 2010 19:16:35 +0000 (21:16 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 4 May 2010 19:17:34 +0000 (21:17 +0200)
Close #3262

src/video_output/event.h

index 948d317fd14f2902d8356425fa5021773339621b..0cb1042c556d8a2ee639925774c994e2d800ec4e 100644 (file)
@@ -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)