microsoft / GDK

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

GameInput fails to update Gamepad State for Xbox 360 Controller #39

Open F1r3D3v opened 11 months ago

F1r3D3v commented 11 months ago

I encountered an issue with GameInput while using an Xbox 360 Controller connected via a Wireless Receiver Dongle (I haven't tested it with a cable). The problem is that GameInput correctly detects that the gamepad is connected, but it fails to update the gamepad state, resulting in no input being registered. The vibration feature still works properly.

Furthermore, on one of my PCs, after connecting the Xbox 360 Controller just once, GameInput continuously displays that the gamepad is connected, even when it's physically disconnected and the Wireless Receiver Dongle is unplugged from the computer. I have to restart the GameInput Service to start working normally. It's worth noting that the Xbox Series X controller works flawlessly with GameInput.

Any assistance or suggestions on resolving this issue would be greatly appreciated.

mitridas commented 6 months ago

Hi, I have the same issue, except the Xbox 360 controller is wired in my case. The family is correctly detected as GameInputFamilyXbox360 in the GameInputDeviceInfo, connection is detected but no input values appear. Worth noting that the GamePad sample from the GDK samples repositories also appears to suffer from the same issue (gamepad detected but no input received).

CDMcGwire commented 6 months ago

I'm also having this problem but with an 8BitDo Ultimate controller which is detected and labelled by GameInput and assigned GameInputFamilyXbox360. Whether processed as a Gamepad or Controller, none of the buttons will report any changes.

My Xbox Elite Series 2 controller is detected and updates properly as a gamepad, and a Dualsense is detected as a "Controller" but still reports on button presses just fine.

I get the sense that the 360 family handling specifically is bugged or there's some undocumented envrionment configuration issue.

osor-io commented 5 months ago

I'm seeing the same with both Xbox360 controllers and the 8BitDo controller. The gamepad state always returns zeroed out. Trying to access the data via the IGameInputReading::GetControllerAxis/Button/Switch interfaces also returns zeroes for everything, although the count of axes, buttons and switches seems to be reported correctly.

frozax commented 5 months ago

Same issue for me. I think the conclusion is that we shouldn't use GameInput, right?

pfeard commented 5 months ago

Same here with a Xbox360 wired gamepad. Strange that it hasn't been fixed in 6 months.

Eoin-ONeill-Yokai commented 4 months ago

Having this issue as well. Tried a few different 8bit-do's on XInput (Xbox) mode and they won't budge. Using my 8BitDo Pro 2 on "Android" compatibility mode seems to work as a work around but isn't ideal.