shiiion / dolphin

Dolphin fork intended to give Metroid Prime Trilogy mouselook controls
Other
466 stars 43 forks source link

InputCommon/XInput2: Added an axis output for the scroll wheel #134

Closed TheConfuZzledDude closed 8 months ago

TheConfuZzledDude commented 1 year ago

(Cherry-picked from my upstream PR https://github.com/dolphin-emu/dolphin/pull/11363)

On X11, mouse wheel inputs are almost impossible to produce since the ButtonPress and ButtonRelease events are sent simultaneously. I'd previously attempted to fix this by adding an input buffer (https://github.com/dolphin-emu/dolphin/pull/8815) but that wasn't quite right, and doing a completely working implementation of that seems tricky. As an alternative, XInput2 does expose the scroll wheel as an axis (similar to on Windows), so this provides that as an axis (Axis Z), and from my testing seems to work fairly reliably.

SirMangler commented 8 months ago

Closed because this has been merged via upstream into our rebase branch primehack-master