mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #788] Xinput improvements #124
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/stenzek/duckstation/pull/788
State: closed
Merged: Yes
This PR brings two changes to the XInput backend:
XINPUT_CAPS_FFB_SUPPORTEDusage has been retired. This flag is only available with XInput 1.4, and it does not indicate whether or not rumble is supported. MSDN specifically notes:As of now,
supports_rumbleis unused so there were no side effects of this (other than a false negative "rumble not supported" message in the log), but this avoids a future bug which would have certainly occurred onceGetControllerRumbleMotorCountbecomes used.XInputGetStateExfunction.It can be assumed that most users have DirectX End-User Runtimes installed (most games ship it), so there is no harm in trying to load XInput 1.3 before falling back to the oldest version. At the cost of a few more lines of code, (most) Windows 7 users will now be able to poll for the Guide button.