core: window: handle mouse events

Multimedia / VLC - Thomas Guillem [gllm.fr] - 28 November 2016 09:36 UTC

Mouse events can now be caught by "vout window" modules in addition to "vout display" modules. Mouse events are propagated to the vout_thread_t via a new
vout_control. That way, window mouse coordinates can be translated to video coordinates from ThreadControl (where it's safe to access vd->source and
vd->cfg).

Ref #9787

45740ca core: window: handle mouse events
include/vlc_vout_window.h | 94 +++++++++++++++++++++++++++++++++++++++
src/video_output/control.h | 4 ++
src/video_output/video_output.c | 56 +++++++++++++++++++++++
src/video_output/vout_control.h | 5 +++
src/video_output/window.c | 8 ++++
5 files changed, 167 insertions(+)

Upstream: git.videolan.org


  • Share