[vlc-devel] commit: skins(Win32): add hotkeys support in fullscreen mode (Erwan Tulou )

git version control git at videolan.org
Sat Dec 26 23:21:35 CET 2009


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Sat Dec 26 21:54:45 2009 +0100| [b92e60148959f3cb63e895943ea803222750f7ea] | committer: Erwan Tulou 

skins(Win32): add hotkeys support in fullscreen mode

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

 modules/gui/skins2/src/vout_manager.hpp |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/gui/skins2/src/vout_manager.hpp b/modules/gui/skins2/src/vout_manager.hpp
index 6f6661c..999990d 100644
--- a/modules/gui/skins2/src/vout_manager.hpp
+++ b/modules/gui/skins2/src/vout_manager.hpp
@@ -31,6 +31,7 @@
 #include "../utils/position.hpp"
 #include "../commands/cmd_generic.hpp"
 #include "../controls/ctrl_video.hpp"
+#include "../events/evt_key.hpp"
 
 class VarBool;
 class GenericWindow;
@@ -65,6 +66,14 @@ public:
         move( -50, -50 );
     }
     virtual ~VoutMainWindow() { }
+
+    virtual void processEvent( EvtKey &rEvtKey )
+    {
+        // Only do the action when the key is down
+        if( rEvtKey.getKeyState() == EvtKey::kDown )
+            var_SetInteger( getIntf()->p_libvlc, "key-pressed",
+                             rEvtKey.getModKey() );
+    }
 };
 
 




More information about the vlc-devel mailing list