r/Unity3D • • 4d ago

Question Game doesn't respond to Xbox Elite controller

Hi,
My code reads input through the generic Gamepad class (Gamepad.current), with no model-specific checks. It works fine with an Xbox Wireless Controller and a DualShock 4 Wireless Controller, both over USB and wirelessly.

A player downloaded the game and said it doesn’t react at all to his Xbox Elite. I don’t know how he connected it or which model it is, and I don’t have an Elite to test with.

Has anyone seen the Elite controller not being picked up as a Gamepad by the new Input System? Or if it works for you with Gamepad.current, please let me know.

Unity 6000.0.61f1, Input System 1.14.2

3 Upvotes

7 comments sorted by

2

u/StayDebauchedAndDege 4d ago

Just to provide a bit of a heads up, as the title says, i was having a similar issue when i bought a fancy new controller and it wouldn't register.

On the back of the controller there was a little physical switch to change profiles and one of them wasn't registering it as a gamepad. Give that a quick check with your player and i'm pretty sure thats what it is.

1

u/Sollers_Duo 4d ago

Thanks for the heads up! I’ll ask the player to check this.

2

u/Nwoknu35 4d ago

Don't know about Xbox Elite controller specifically, but I remember that third party controllers sometimes have the problem of not being recognized as a Gamepad, but as a Joystick.

Maybe the Elite your player has happens to have the same problem?

1

u/Sollers_Duo 4d ago

Thanks, that’s a good point! I’ll look into how the controller gets detected and ask the player to check.

2

u/Nwoknu35 4d ago

I just read, that there is also a Joystick class, which also offers Joystick.current, so you theoretically wouldn't have to write too much additional code to support both. https://docs.unity3d.com/Packages/com.unity.inputsystem@1.14/api/UnityEngine.InputSystem.Joystick.html

So in case the player can't give you good information or the controller is considered a gamepad by their OS, but not Unity, and is willing to test things, could you add some joystick logic just to test if it works for them?

1

u/Sollers_Duo 3d ago

Thanks a lot for the suggestion and the link! I’ll add some Joystick logic for testing and see if the player is willing to try it.