From: Erwan Tulou Date: Wed, 7 Jul 2010 13:36:27 +0000 (+0200) Subject: skin2(Win32): add support for mouse wheel in fullscreen mode X-Git-Tag: 1.2.0-pre1~5931 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=36fda079eaf46162d0cd67f205766e9c71ee1cc5;p=vlc skin2(Win32): add support for mouse wheel in fullscreen mode fix #3862 --- 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 ); + } };