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
- The tag adder functionality does not work if a space is entered instead of a name
- Errors thrown in the Console when configuring In-App Purchases package
- Longer Scaler Profile names go out of the"Scaler Profilers" section
- AI Navigation window UI elements overlap when the AI Navigation window is docked and resized
- Editor freezes after some time when using NavMeshQuery::Raycast
Resolution Note (fix version 1.1-preview.2):
Fixed by https://github.com/Unity-Technologies/InputSystem/pull/1220. Control Scheme is changed accordingly