I tried a to call Gamepad.current.leftStick.ReadDefaultValue(), but the gamepad object is null. The list of supported device is empty, that means all devices are used according the documentation (adding gamepad doesn’t make it work).
My question is how to make the gamepad to work as examples? Do I have missed something?
Yes, the keyboard and my Oculus Touch controllers are working well. The gamepad doesn’t appear in the debugger. However it’s well detected by the old input system. I tried Unity 2020.1a19 and the result is the same.
@Rene-Damm I tried two new things with Unity 2019.3f5 on Windows 10 (latest update). The first one was to use another Xbox game controller. It doesn’t work too, Gamepad.current returns null and Gamepad.all is empty. I tried the Input sample which allows to switch between the old and the new system. The gamepad works, because it’s handled by the old system. If i disable the old system’s scripts, it doesn’t work anymore.
Is there a place where I can submit the bug? Github? Unity issues?
The controller is updated with the latest firmware. The PID/HID are USB\VID_045E&PID_02DD\7EED8017DDC
As I said, it works with the old system, not the new one. With the new system I can use the keyboard, the mouse and my Oculus Touch controller without any issue.
@Rene-Damm reported #1213981
But I’ve discovered that the controller works when I use it with the remote adapter. It’s not work when connected in USB, but works when connected using wireless.
private void FixedUpdate()
{
var gamepad = Gamepad.current;
if (gamepad != null)
{
Debug.Log(gamepad.name);
Debug.Log(gamepad.shortDisplayName);
Debug.Log(gamepad.displayName);
}
}
Hi, having the same problem
The Xbox controller is detected and works when connected wirelessly, but not when connected via USB.
Using the New Input System.
I found that it’s depend of the controller. I’ve a black xbox controller that doesn’t work without the wireless key and another one that works in USB Oo. I don’t know the difference between them, but it’s two official Xbox one gamepads…
Hi, I’m having the same issue in this thread with an 8BitDio SN30Pro controller. When I switch to my xbox controller everything works correctly, but the 8BitDio acts like its not connected. Should I submit a bug?
I have tested the same debug log outputs as @demonixis and get the same results. It’s detecting the controller, but the shortDisplayName is null. Is this why the new input system does not work with my xbox controller? Seems like something isn’t working right.
How can we reproduce the issue? Any specific game controllers? The exact model number and the exact setup info would help. Because I see 1213981 was closed as our QA couldn’t repro it, but if it happens obviously there is a problem and we need to look at it.
After some more digging. I found I was just using it incorrectly. I think what happened was that xbox controller was tied to user 1, as opposed to just overriding the keyboard/mouse. That is my current understanding. Still learning this new input.
The xbox shortDisplayName being null lead me to believe maybe it was an issue finding the device. I don’t think that was the case, sorry!
I am having the same issue with an XBox one controller (Model No. 1914). When plugged in using USB, it works with the old input, but not the new input system.
met same problem. I am using unity 2021.1.16f1, newest input system.
Connected xbox one controller connected to PC windows10 via Xbox wireless adapter.
In this case, unity editor console window says connected.
but at game, gamepad = Gamepad.current;
gamepad.buttonEast sort of things does not work for xbox controller. game does not recognize xbox controller.
if I connect nintendo switch pro controller, this work well.
Why? I want to support xbox controller because this is normal for Steam users.
Same issue, Unity 2021.3.19. Wired Xbox 360 controller. Works fine with the old input system, but Gamepad.current is null with the new one – even with the included state demo, which I try to run right away without messing with it.
Same for me, using the Xbox 360 Controller wired via USB-C. The Unity Input Debug window shows a “Microsoft Controller (HID)” within the “Unsupported” devices section. When connected via Bluetooth, however, everything runs fine.
Unity 2022.3.51 on macOS 15.3 (MacBook Pro M3 Max)
This remains a problem to this day in Unity 6. Wireless xbox one controllers that are connected via USB are listed as unsupported devices, over bluetooth they are supported. Pretty confusing and frustrating if you’re low on batteries.