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
- Previous model to world matrix is not correctly set for ASW
- More calls are made to GC.Alloc in an HDRP Sample Template when compared to the 2022.3 stream
- Generating Light Probe lighting returns inconsistent results on a specific mesh
- Two Warnings appear for every Soft Delete Operation when Deleting Sub Assets in the Project Browser
- “Item m_LightProbeSystem not found” warning is thrown when pressing the “Open” button multiple times in the Adaptive Probe Volume component warning
Resolution Note (fix version 1.1-preview.2):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1220. Control Scheme is changed accordingly