microsoft / Xbox-GDK-Samples

Game development samples published by the Xbox Advanced Technology Group using the Microsoft GDK.
http://aka.ms/gamedevdocs
MIT License
218 stars 32 forks source link

m_gameInput->GetCurrentReading always returns 0x838a0003 #25

Closed luqiming666 closed 1 year ago

luqiming666 commented 1 year ago

Sample project: Gamepad or GamepadVibration m_gameInput->GetCurrentReading always returns 0x838a0003. WHAT DOES IT MEAN?

There's no definition for this code in XGameErr.h.

I've connected a Xbox Controller Series X to my Win 11 PC for sure.

no_controller_connected
walbourn commented 1 year ago

That's "ERROR_PATH_NOT_FOUND".

Do you have the Game Runtime installed and the associated "GameInput" service running on the system?

luqiming666 commented 1 year ago

I installed GDK-October_2022_Update_2. I just ran services.msc, and found that "GameInput Service" and "Gaming Services" were running... Then I ran the sample codes agian. It works now :)

Thanks.