}
int libvlc_video_get_cursor( libvlc_media_player_t *mp, unsigned num,
- int *px, int *py )
+ int *restrict px, int *restrict py )
{
vout_thread_t *p_vout = GetVout (mp, num);
if (p_vout == NULL)
return -1;
- *px = var_GetInteger (p_vout, "mouse-x");
- *py = var_GetInteger (p_vout, "mouse-y");
+ var_GetCoords (p_vout, "mouse-moved", px, py);
vlc_object_release (p_vout);
return 0;
}