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
- Timeline section stops rendering after restoring Profiler Window modules
- Cursor image does not update when Cursor.SetCursor is called again with CursorMode.Auto
- Crash on do_runtime_invoke when reopening a specific project after failing to build it
- Animations change speed when rigidbody is added
- Low FPS persists when re-entering Play mode after an extended session in a specific project
Resolution Note (fix version 1.1-preview.2):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1220. Control Scheme is changed accordingly