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

WinRT game controllers not calling SDL_CONTROLLERDEVICEADDED - 2.0.18 Prerelease #5017

Closed
RustyMoyher opened this issue Nov 27, 2021 · 3 comments
Assignees
Milestone

Comments

@RustyMoyher
Copy link
Contributor

I'm unable to get game controllers to work during testing in WinRT/UWP of the Nov 26 Prerelease of 2.0.18. Neither controllers plugged in at launch or hot plugging the Xbox One controllers call the SDL_CONTROLLERDEVICEADDED event.

I built the WinRT source using Visual Studio 2017 and set the platforms tools to v141.

I’m not sure if this is a new issue or is related to 4321. The previous workaround of using SDL_SetHint(SDL_HINT_JOYSTICK_THREAD, "1"); doesn't help either.

@slouken
Copy link
Collaborator

slouken commented Nov 27, 2021

This is fixed in the latest code. I'm not sure why XInput stopped reporting controllers as connected, but Microsoft has been recommending WGI for UWP apps for a while, so I went ahead and implemented that support.

@slouken slouken self-assigned this Nov 27, 2021
@slouken slouken added this to the 2.0.18 milestone Nov 27, 2021
@RustyMoyher
Copy link
Contributor Author

Excellent! Tested this issue with the latest tip in WinRT/UWP. Everything is working well so far. 👍

@slouken
Copy link
Collaborator

slouken commented Nov 27, 2021

Great! :)

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

No branches or pull requests

2 participants