[vlc-commits] window: add helper to send a key press event

Rémi Denis-Courmont git at videolan.org
Sun May 20 19:50:53 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 17 23:08:45 2018 +0300| [dff18bb24481443e47b536bf7e1192ba0d26c0e9] | committer: Rémi Denis-Courmont

window: add helper to send a key press event

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

 include/vlc_vout_window.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index aef856d231..d2f0014771 100644
--- a/include/vlc_vout_window.h
+++ b/include/vlc_vout_window.h
@@ -369,5 +369,10 @@ static inline void vout_window_ReportMouseDoubleClick(vout_window_t *window,
     vout_window_SendMouseEvent(window, &mouse);
 }
 
+static inline void vout_window_ReportKeyPress(vout_window_t *window, int key)
+{
+    var_SetInteger(window->obj.libvlc, "key-pressed", key);
+}
+
 /** @} */
 #endif /* VLC_VOUT_WINDOW_H */



More information about the vlc-commits mailing list