I used to have a code that works fine on old Input system, but on the new Input System, I had to find another solution and now it only works if the controller is plugged, if I unplug the controller I keep getting the following error: (Check the attached image).
Is there any other way to detect if controller is plugged on new Input system.There is no problem if it’s Xbox/Playstation or just generic controller. Just want to detect if it’s plugged or not.
That doesn’t work for me — Gamepad.current == null even though I have a gamepad plugged in and am using it to navigate the UI to where my test code fires.