Search Issue Tracker
Fixed in 1.1-preview.2
Votes
0
Found in [Package]
preview.6 - 1.0.0
Issue ID
1232039
Regression
No
Input System Auto-Switch locks on one device when it's disabled and re-enabled via script
To reproduce:
1. Open attached project ("case_1232039.zip")
2. From Hierarchy select "PlayerInput1" Game Object
3. Press Play and focus the Game view
4. Use any Gamepad input and observe Control Scheme change in Debug window
5. With Keyboard arrow keys navigate to "Disable Switching" button and press Enter to turn off Auto-Switch
6. Now do the same with "Enable Switching" button to turn it on again
7. Try to use Gamepad input once again
Expected result: Control Scheme is changed accordingly
Actual result: Control Scheme is not changed and inputs are ignored
Reproducible in: 2019.3.10f1, 2020.1.0b6, 2020.2.0a7
Could not test in: 2017.4.39f1 (No package manager), 2018.4.21f1 (Due to errors)
Reproducible in package versions: preview.2 - 1.0.0, preview.6 - 1.0.0
Could not test in package versions: 0.1.2, 0.9.5 (Due to errors), 0.9.6, preview.1 - 1.0.0 (Inputs not working correctly in repro project)
Note: disabling and re-enabling is done by changing PlayerInput.neverAutoSwitchControlSchemes value
Comments (2)
-
MaleMaldives
Jun 22, 2021 19:39
Sorry, I found my problem. Sure enough after a week of struggling with this, I found the fix right after posting.
-
MaleMaldives
Jun 22, 2021 19:35
I think I ran into this issue. I disabled and re enabled auto switching and auto switching no longer works for that scene. I was on 2019.4.14f1 with version 1.0.2. I updated to 2020.3.12f1 with version 1.1-preview.3 and the issue has persisted. Do I need to rebuild the scene?
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 (fix version 1.1-preview.2):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1220. Control Scheme is changed accordingly