obv-mikhail / InputBot

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

Added X1 & X2 Mouse Buttons to Windows #106

Closed KalevGonvick closed 1 month ago

KalevGonvick commented 1 month ago

You can use MOUSEEVENTF_XDOWN or MOUSEEVENTF_XUP and specify the button number in the mouseData field to pick which button you want to use.

I found this info in the docs on this page here: https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-mouseinput