Commit d67346a2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Vout: Correctly handle the mousewheeling

Close #3262
(cherry picked from commit fb786854)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent adc74751
...@@ -79,6 +79,12 @@ static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button) ...@@ -79,6 +79,12 @@ static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button)
case MOUSE_BUTTON_RIGHT: case MOUSE_BUTTON_RIGHT:
var_SetBool(vout->p_libvlc, "intf-popupmenu", true); var_SetBool(vout->p_libvlc, "intf-popupmenu", true);
break; break;
case MOUSE_BUTTON_WHEEL_UP:
vout_SendEventKey(vout, KEY_MOUSEWHEELUP);
break;
case MOUSE_BUTTON_WHEEL_DOWN:
vout_SendEventKey(vout, KEY_MOUSEWHEELDOWN);
break;
} }
} }
static inline void vout_SendEventMouseReleased(vout_thread_t *vout, int button) static inline void vout_SendEventMouseReleased(vout_thread_t *vout, int button)
......
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