Commit 36fda079 authored by Erwan Tulou's avatar Erwan Tulou

skin2(Win32): add support for mouse wheel in fullscreen mode

fix #3862
parent 2dee046f
...@@ -28,10 +28,12 @@ ...@@ -28,10 +28,12 @@
#include <vlc_vout.h> #include <vlc_vout.h>
#include <vlc_vout_window.h> #include <vlc_vout_window.h>
#include <vlc_keys.h>
#include "../utils/position.hpp" #include "../utils/position.hpp"
#include "../commands/cmd_generic.hpp" #include "../commands/cmd_generic.hpp"
#include "../controls/ctrl_video.hpp" #include "../controls/ctrl_video.hpp"
#include "../events/evt_key.hpp" #include "../events/evt_key.hpp"
#include "../events/evt_scroll.hpp"
class VarBool; class VarBool;
class GenericWindow; class GenericWindow;
...@@ -74,6 +76,17 @@ public: ...@@ -74,6 +76,17 @@ public:
var_SetInteger( getIntf()->p_libvlc, "key-pressed", var_SetInteger( getIntf()->p_libvlc, "key-pressed",
rEvtKey.getModKey() ); 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 );
}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment