[vlc-commits] splitter: handle key press events

Rémi Denis-Courmont git at videolan.org
Sun Jan 13 14:44:52 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 13 15:41:18 2019 +0200| [ba175eb24c47ed7d9443ebb6d290a6182225f814] | committer: Rémi Denis-Courmont

splitter: handle key press events

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

 modules/video_output/splitter.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/video_output/splitter.c b/modules/video_output/splitter.c
index e19df069a2..5acd971c75 100644
--- a/modules/video_output/splitter.c
+++ b/modules/video_output/splitter.c
@@ -159,10 +159,18 @@ static void vlc_vidsplit_window_MouseEvent(vout_window_t *wnd,
         vout_window_SendMouseEvent(vd->cfg->window, &ev);
 }
 
+static void vlc_vidsplit_window_KeyboardEvent(vout_window_t *wnd, unsigned key)
+{
+    vout_display_t *vd = (vout_display_t *)wnd->obj.parent;
+
+    vout_window_ReportKeyPress(vd->cfg->window, key);
+}
+
 static const struct vout_window_callbacks vlc_vidsplit_window_cbs = {
     .resized = vlc_vidsplit_window_Resized,
     .closed = vlc_vidsplit_window_Closed,
     .mouse_event = vlc_vidsplit_window_MouseEvent,
+    .keyboard_event = vlc_vidsplit_window_KeyboardEvent,
 };
 
 static vout_window_t *video_splitter_CreateWindow(vlc_object_t *obj,



More information about the vlc-commits mailing list