[vlc-commits] display: reroute and deprecate key press event

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


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 18 21:40:07 2018 +0300| [617076b2f084e83822a12d218ddd2d730df7d635] | committer: Rémi Denis-Courmont

display: reroute and deprecate key press event

This is nominally handled by the window provider
- or directly sent to the instance :(

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

 include/vlc_vout_display.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index c6886b8ea0..813e9bed5d 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -325,11 +325,15 @@ static inline void vout_display_SendEventClose(vout_display_t *vd)
 {
     vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_CLOSE);
 }
+
+#if defined(_WIN32) || defined(__OS2__)
+VLC_DEPRECATED
+/* Use vout_window_ReportKeyPress() in window provider instead. */
 static inline void vout_display_SendEventKey(vout_display_t *vd, int key)
 {
-    vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_KEY, key);
+    vout_window_ReportKeyPress(vd->cfg->window, key);
 }
-#if defined(_WIN32) || defined(__OS2__)
+
 static inline void vout_display_SendEventFullscreen(vout_display_t *vd, bool is_fullscreen,
                                                     bool is_window_fullscreen)
 {



More information about the vlc-commits mailing list