vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuf...@gmail.com> | Wed Nov 28 11:32:11 2018 +0100| [fc94ba0af460a5f37a8536a6e18613167ce727a7] | committer: Thomas Guillem
actions: add wheel button to keycode helper Signed-off-by: Thomas Guillem <tho...@gllm.fr> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fc94ba0af460a5f37a8536a6e18613167ce727a7 --- include/vlc_actions.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/vlc_actions.h b/include/vlc_actions.h index c7c533bd7b..428a34944d 100644 --- a/include/vlc_actions.h +++ b/include/vlc_actions.h @@ -23,6 +23,8 @@ #ifndef VLC_ACTIONS_H #define VLC_ACTIONS_H 1 +# include <vlc_mouse.h> + /* Called from src/libvlc.c */ int libvlc_InternalActionsInit(libvlc_int_t *p_libvlc); @@ -112,6 +114,8 @@ libvlc_InternalActionsClean(libvlc_int_t *p_libvlc); #define KEY_MOUSEWHEELDOWN 0x00F10000 #define KEY_MOUSEWHEELLEFT 0x00F20000 #define KEY_MOUSEWHEELRIGHT 0x00F30000 +#define KEY_MOUSEWHEEL_FROM_BUTTON(button) \ + (KEY_MOUSEWHEELUP | ((button - MOUSE_BUTTON_WHEEL_UP) << 16)) VLC_API char *vlc_keycode2str(uint_fast32_t i_key, bool locale) VLC_USED; VLC_API uint_fast32_t vlc_str2keycode(const char *str) VLC_USED; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits