[vlc-commits] commit: Vout: Correctly handle the mousewheeling (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue May 4 23:59:18 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May  4 21:16:35 2010 +0200| [d67346a2a3f5f968cc29e93553f667d67c441c82] | committer: Jean-Baptiste Kempf 

Vout: Correctly handle the mousewheeling

Close #3262
(cherry picked from commit fb7868548127507c8d792253d24ec362f1cb72f2)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=d67346a2a3f5f968cc29e93553f667d67c441c82
---

 src/video_output/event.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/video_output/event.h b/src/video_output/event.h
index 948d317..0cb1042 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)



More information about the vlc-commits mailing list