obv-mikhail / InputBot

Rust library for creating global hotkeys, and simulating inputs
MIT License
414 stars 74 forks source link

MouseButton::{MousewheelDown,MousewheelUp} #93

Closed masonk closed 10 months ago

masonk commented 10 months ago

Introduce two new enumerators for MouseButton: MouseButton::MousewheelDown and MouseButton::MousewheelUp.

These events fire on each "notch" of a mousewheel advance. I dug out a mouse with a smooth wheel too, and winapi still only sends either 120 or -120 in the highword of hook, corresponding to one "notch", even on a smooth wheel.

Patch implements Windows only.