microsoft / GDK

Microsoft Public GDK
http://aka.ms/gamedevdocs
Other
1.48k stars 99 forks source link

Game controllers (Xbox One, Xbox 360, Sony PS5) - GetGamepadState always returns empty state #70

Open manas-kulkarni opened 3 weeks ago

manas-kulkarni commented 3 weeks ago

We have tried running the repair tool https://support.xbox.com/en-US/help/games-apps/troubleshooting/gaming-services-repair-tool

Microsoft says that GameInput is the recommended input API regardless of the target platform, supposed to work even on earlier versions of Windows as well. Are we missing something in the setup?

Thank you

Bambo-Borris commented 1 week ago

I've also experienced this recently. Grabbed the GameInput dependencies from the nuget package and began working through the tutorials. The one on getting basic readings is just giving me empty states for the pad. It identifies my Xbox One pad as a Xbox 360 family (maybe that's expected on PC?). Also the same concerns with PS4/PS5 controllers too. Ran the repair tool, nada. I have the redist installed... Nada..

Edit:

I identified my own problem, if the gamepad is connected via bluetooth it fails. If it's connected via USB C there's no problems.