mouse
mouse copied to clipboard
How do I detect mouse wheel scroll events?
I did not find the mouse wheel scrolling event, Can anybody help me?
you could
mouse.hook(mouse_handler)
def mouse_handler(event):
if isinstance(event, mouse.WheelEvent):
// handle wheel scrolling
you could
mouse.hook(mouse_handler)
def mouse_handler(event): if isinstance(event, mouse.WheelEvent): // handle wheel scrolling
There isn't a function for the specific event? the hook function is a bit overkill as it grabs all occurred events.