[vlc-commits] hotkeys: use MOUSE_BUTTON_LEFT

Rémi Denis-Courmont git at videolan.org
Thu May 31 20:45:38 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 31 20:53:57 2018 +0300| [80acfd898260f214abc467e38105b65a13e45747] | committer: Rémi Denis-Courmont

hotkeys: use MOUSE_BUTTON_LEFT

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

 modules/control/hotkeys.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index b0734e1811..70d4286a6c 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -36,6 +36,7 @@
 #include <vlc_interface.h>
 #include <vlc_input.h>
 #include <vlc_aout.h>
+#include <vlc_mouse.h>
 #include <vlc_viewpoint.h>
 #include <vlc_vout_osd.h>
 #include <vlc_playlist.h>
@@ -155,7 +156,7 @@ static int ButtonEvent( vlc_object_t *p_this, char const *psz_var,
 
     (void) psz_var; (void) oldval;
 
-    if( newval.i_int & 0x01 )
+    if (newval.i_int & (1 << MOUSE_BUTTON_LEFT))
     {
         if( !p_sys->vrnav.b_button_pressed )
         {



More information about the vlc-commits mailing list