You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If dwFlags contains MOUSEEVENTF_WHEEL, then mouseData specifies the amount of wheel movement. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user.
MOUSEINPUT.mouseData accepts both positive and negative values
Actual behavior
MOUSEINPUT.mouseData only accepts positive values
Additional comments
I wish I could fix the problem and create PR by myself, but failed to build source code on my PC because of certain errors which may be windows OS things. Please forgive me for just creating this issue. thank you.
The text was updated successfully, but these errors were encountered:
Which crate is this about?
windows, windows-sys
Crate version
0.35.0
Summary
I found
MOUSEINPUT.mouseData
is declared asu32
, but it should bei32
because you would need negative values when you trigger mouse wheel actions.microsoft document
MOUSEINPUT structure (winuser.h)
code
windows crate
https://github.com/microsoft/windows-rs/blob/ab6994f440269f3e60d92ab0089ef8f3cd8948c8/crates/libs/windows/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs#L1198
windows-sys crate
https://github.com/microsoft/windows-rs/blob/98e50a7df3784a7ecf76ce48743ec65d92493aa6/crates/libs/sys/src/Windows/Win32/UI/Input/KeyboardAndMouse/mod.rs#L549
Toolchain version/configuration
No response
Reproducible example
No response
Crate manifest
No response
Expected behavior
MOUSEINPUT.mouseData
accepts both positive and negative valuesActual behavior
MOUSEINPUT.mouseData
only accepts positive valuesAdditional comments
I wish I could fix the problem and create PR by myself, but failed to build source code on my PC because of certain errors which may be windows OS things. Please forgive me for just creating this issue. thank you.
The text was updated successfully, but these errors were encountered: