mouse icon indicating copy to clipboard operation
mouse copied to clipboard

How do I detect mouse wheel scroll events?

Open davidWeiZhou opened this issue 5 years ago • 2 comments

I did not find the mouse wheel scrolling event, Can anybody help me?

davidWeiZhou avatar Nov 09 '19 01:11 davidWeiZhou

you could

mouse.hook(mouse_handler)
def mouse_handler(event):
    if isinstance(event, mouse.WheelEvent):
        // handle wheel scrolling

chickentuna avatar Jul 27 '20 19:07 chickentuna

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.

AdroitBit avatar Aug 03 '22 15:08 AdroitBit