Input System doesn’t see an XInput controller if the controller is plugged in during Unity splash screen when launching the built player.
Steps to reproduce:
- Build a project with the new Input System
- Make sure no gamepad is connected.
- Launch the .exe
- When the Unity splash screen is displayed, plug in the gamepad.
- When the scene loads, the gamepad doesn’t work (and doesn’t appear on the Input System device list)
Reproduced in 2019.3.13f1, 2019.4.24f1, 2020.3.0f1, 2020.3.3f1 with Input System v 1.0.2 and 1.1.0-preview.3
Does anyone know how to deal with this? It looks like Unity’s never getting the OnDeviceChanged event when you connect a gamepad during the splash screen. InputSystem.devices doesn’t show the gamepad even though it’s plugged in. There doesn’t seem to be a way to force the Input System to refresh this list from code.
Submitted a bug report, but would really like to find a solution ASAP.
I would appreciate any help with this.