]> git.sesse.net Git - vlc/commitdiff
Make mouse-moved a void variable
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 13 Feb 2010 16:02:14 +0000 (18:02 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 13 Feb 2010 16:02:32 +0000 (18:02 +0200)
modules/gui/macosx/vout.m
modules/gui/macosx/voutgl.m
modules/gui/minimal_macosx/voutagl.m
modules/video_filter/wrapper.c
modules/video_output/opengl.c
src/video_output/event.h
src/video_output/video_output.c
src/video_output/vout_intf.c

index be05431b9ee4378db6396136710c54439498cc55..d65dbbca7988d93ad2aae885475634cb109c71b4 100644 (file)
@@ -668,9 +668,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
                             p_vout->render.i_height / i_height;
             }
             var_Set( p_vout, "mouse-y", val );
-
-            val.b_bool = true;
-            var_Set( p_vout, "mouse-moved", val );
+            var_TriggerCallback( p_vout, "mouse-moved" );
         }
         if( [self isFullscreen] )
             [[[[VLCMain sharedInstance] controls] fspanel] fadeIn];
index abe1a321e639c83ebf0b6da6ddbbba7a62d61318..4a496cd53c37595cbfa5f574c85b880488142293 100644 (file)
@@ -1030,10 +1030,7 @@ static pascal OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, Event
                             p_vout->render.i_height / i_height;
 
                 var_Set( p_vout, "mouse-y", val );
-
-                val.b_bool = true;
-                var_Set( p_vout, "mouse-moved", val );
-
+                var_TriggerCallback( p_vout, "mouse-moved" );
                 break;
             }
  
index 80425c2bd606099e48d2a6177ca2f31e507dae75..58f457f2de68ed87967be13b31fde5db04a21d55 100644 (file)
@@ -588,10 +588,7 @@ static pascal OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, Event
                             p_vout->render.i_height / i_height;
 
                 var_Set( p_vout, "mouse-y", val );
-
-                val.b_bool = true;
-                var_Set( p_vout, "mouse-moved", val );
-
+                var_TriggerCallback( p_vout, "mouse-moved" );
                 break;
             }
  
index 928f4034b59ef7930bc703f907da12a95a9c0ef3..d01527fc880368d31477eef55e87226f529c004d 100644 (file)
@@ -487,7 +487,7 @@ static int MouseEvent( vlc_object_t *p_this, char const *psz_var,
     {
         var_SetInteger( p_vout, "mouse-x", nmouse.i_x );
         var_SetInteger( p_vout, "mouse-y", nmouse.i_y );
-        var_SetBool( p_vout, "mouse-moved", true );
+        var_TriggerCallback( p_vout, "mouse-moved" );
     }
     if( vlc_mouse_HasButton( &omouse, &nmouse ) )
     {
index c1dfb444b54c361570820b5a93453148a04a984e..fa1d0486371d0264d9896f8d8939b214531ac9d0 100644 (file)
@@ -131,7 +131,7 @@ static int CreateVout( vlc_object_t *p_this )
     /* Forward events from the opengl provider */
     var_Create( p_sys->p_vout, "mouse-x", VLC_VAR_INTEGER );
     var_Create( p_sys->p_vout, "mouse-y", VLC_VAR_INTEGER );
-    var_Create( p_sys->p_vout, "mouse-moved", VLC_VAR_BOOL );
+    var_Create( p_sys->p_vout, "mouse-moved", VLC_VAR_VOID );
     var_Create( p_sys->p_vout, "mouse-clicked", VLC_VAR_BOOL );
     var_Create( p_sys->p_vout, "mouse-button-down", VLC_VAR_INTEGER );
     var_Create( p_sys->p_vout, "video-on-top",
index bbc7812c4ae6cc466d8c9e4311e113f8fa26f40a..bf9087c1633538230f9b6b2ce0585a5631c9a12a 100644 (file)
@@ -58,7 +58,7 @@ static inline void vout_SendEventMouseMoved(vout_thread_t *vout, int x, int y)
 {
     var_SetInteger(vout, "mouse-x", x);
     var_SetInteger(vout, "mouse-y", y);
-    var_SetBool(vout, "mouse-moved", true);
+    var_TriggerCallback(vout, "mouse-moved");
 }
 static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button)
 {
index 58ce6603ad86b21b12790ba23ccfd26b1ae51441..2f4bbd71d7eb21650e82795ac4d5cc75df1d27c5 100644 (file)
@@ -405,7 +405,7 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
     var_Create( p_vout, "mouse-x", VLC_VAR_INTEGER );
     var_Create( p_vout, "mouse-y", VLC_VAR_INTEGER );
     var_Create( p_vout, "mouse-button-down", VLC_VAR_INTEGER );
-    var_Create( p_vout, "mouse-moved", VLC_VAR_BOOL );
+    var_Create( p_vout, "mouse-moved", VLC_VAR_VOID );
     var_Create( p_vout, "mouse-clicked", VLC_VAR_BOOL );
     /* Mouse object (area of interest in a video filter) */
     var_Create( p_vout, "mouse-object", VLC_VAR_BOOL );
index fc8369ebbd58d4a6d19bf13978cbfd789526cc1e..93efb3bd96dec56be3d7312775d38a802a51671f 100644 (file)
@@ -366,7 +366,7 @@ void vout_IntfInit( vout_thread_t *p_vout )
     var_Create( p_vout, "mouse-x", VLC_VAR_INTEGER );
     var_Create( p_vout, "mouse-y", VLC_VAR_INTEGER );
     var_Create( p_vout, "mouse-button-down", VLC_VAR_INTEGER );
-    var_Create( p_vout, "mouse-moved", VLC_VAR_BOOL );
+    var_Create( p_vout, "mouse-moved", VLC_VAR_VOID );
     var_Create( p_vout, "mouse-clicked", VLC_VAR_BOOL );
     var_Create( p_vout, "mouse-object", VLC_VAR_BOOL );