Search Issue Tracker
Fixed
Votes
3
Found in [Package]
Issue ID
1328742
Regression
No
[Input System] Gamepad is not recognized when it is connected during splash screen
How to reproduce:
1. Open the user's attached project "NewInputTest.zip"
2. In File > Build Settings, make sure that Target Platform is set to Windows and Scenes/SampleScene is added to Scenes In Build
3. Build and Run
4. Right when the splash screen starts, connect the controller
Expected results: Xbox Controller appears under (on update) and Current gamepad, it is possible to move and look around the scene using joysticks
Actual results: Xbox Controller doesn't appear under (on update) and Current gamepad and its inputs are not registered
Reproducible with: 2020.3.1f1, 2020.3.10f1, 2021.1.9f1, 2021.2.0a18 (Input System 1.0.2, 1.1.0-pre.5)
Not reproducible with: 2019.4.27f1, 2020.3.0f1 (Input System 1.0.2, 1.1.0-pre.5)
Could not test with: 2018.4.35f1 as it requires outdated versions of Input System
Notes:
- Tested with an Xbox One controller
- If the controller is connected before launching Player or after the splash screen, expected results can be observed
UPDATE:
Not a regression, this scenario has apparently never worked for new Input System. The WM_DEVICECHANGE message, which triggers a refresh of connected devices, isn't handled while the logos are playing (and it never was). To repro the bug, your timing on connecting the device (which generates the WM_DEVICECHANGE) has to be just right: too early and device connection is processed during app initialization, but too late and message is dispatched after logo has ended.
Of course this is still a big problem. Although the timing window on the default Unity logo is small, most games will have at least a couple logos for the studio and publisher, providing a much larger window for the repro to occur.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
Fixed in: 2022.1.0a5