mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #788] [MERGED] Xinput improvements #119
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?
📋 Pull Request Information
Original PR: https://github.com/stenzek/duckstation/pull/788
Author: @CookiePLMonster
Created: 8/22/2020
Status: ✅ Merged
Merged: 8/23/2020
Merged by: @stenzek
Base:
master← Head:xinput-improvements📝 Commits (2)
1c4bbc8XInput: Do not use XINPUT_CAPS_FFB_SUPPORTED8def742XInput: Try to use XInput 1.3 if 1.4 is not present📊 Changes
2 files changed (+13 additions, -26 deletions)
View changed files
📝
src/frontend-common/xinput_controller_interface.cpp(+13 -23)📝
src/frontend-common/xinput_controller_interface.h(+0 -3)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.