]> git.sesse.net Git - vlc/commitdiff
skins(Win32): add hotkeys support in fullscreen mode
authorErwan Tulou <erwan10@videolan.org>
Sat, 26 Dec 2009 20:54:45 +0000 (21:54 +0100)
committerErwan Tulou <erwan10@videolan.org>
Sat, 26 Dec 2009 22:20:49 +0000 (23:20 +0100)
modules/gui/skins2/src/vout_manager.hpp

index 6f6661c1825164265b5cfe67c5b4b87537b2c21e..999990d6a6a34c5bda6f1a5918b9d16a46e2a816 100644 (file)
@@ -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() );
+    }
 };