[vlc-commits] commit: Vout: Correctly handle the mousewheeling (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Tue May 4 21:19:10 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 4 21:16:35 2010 +0200| [fb7868548127507c8d792253d24ec362f1cb72f2] | committer: Jean-Baptiste Kempf
Vout: Correctly handle the mousewheeling
Close #3262
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb7868548127507c8d792253d24ec362f1cb72f2
---
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