Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DInputSource: Limit the amount of reported buttons and POV hats to what the data format supports #10162

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

CookiePLMonster
Copy link
Contributor

Description of Changes

Fixes a crash when the device reports more buttons than what DIJOYSTATE2 can handle. Also partially reverts #10155 because it was rolled out as a tentative crash fix that didn't help - it's unlikely but not impossible IMO that valid axis-only devices exist, so it makes no sense not to allow them.

Rationale behind Changes

Should fix a crash with specific DirectInput devices.

Suggested Testing Steps

Make sure that DirectInput Source gamepads didn't regress.

…at the data format supports

Fixes a crash when the device reports more buttons than what
DIJOYSTATE2 can handle.
Copy link
Contributor

@stenzek stenzek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, untested

@stenzek stenzek merged commit 775f1a0 into PCSX2:master Oct 23, 2023
11 of 12 checks passed
@CookiePLMonster CookiePLMonster deleted the dinput-crash-fix branch October 23, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants