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];
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;
}
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;
}
{
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 ) )
{
/* 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",
{
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)
{
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 );
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 );