From 36fda079eaf46162d0cd67f205766e9c71ee1cc5 Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Wed, 7 Jul 2010 15:36:27 +0200 Subject: [PATCH] skin2(Win32): add support for mouse wheel in fullscreen mode fix #3862 --- modules/gui/skins2/src/vout_manager.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/gui/skins2/src/vout_manager.hpp b/modules/gui/skins2/src/vout_manager.hpp index 999990d6a6..095f25c2d5 100644 --- a/modules/gui/skins2/src/vout_manager.hpp +++ b/modules/gui/skins2/src/vout_manager.hpp @@ -28,10 +28,12 @@ #include #include +#include #include "../utils/position.hpp" #include "../commands/cmd_generic.hpp" #include "../controls/ctrl_video.hpp" #include "../events/evt_key.hpp" +#include "../events/evt_scroll.hpp" class VarBool; class GenericWindow; @@ -74,6 +76,17 @@ public: var_SetInteger( getIntf()->p_libvlc, "key-pressed", rEvtKey.getModKey() ); } + + virtual void processEvent( EvtScroll &rEvtScroll ) + { + // scroll events sent to core as hotkeys + int i_vlck = 0; + i_vlck |= rEvtScroll.getMod(); + i_vlck |= ( rEvtScroll.getDirection() == EvtScroll::kUp ) ? + KEY_MOUSEWHEELUP : KEY_MOUSEWHEELDOWN; + + var_SetInteger( getIntf()->p_libvlc, "key-pressed", i_vlck ); + } }; -- 2.39.2