Skip to content

Commit eca97b8

Browse files
authored
FIX: Provide explicit selected device requirement index for a new control scheme with no devices (#2079)
1 parent 790d9cc commit eca97b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ however, it has to be formatted properly to pass verification tests.
3131
- Fixed documentation to clarify bindings with modifiers `overrideModifiersNeedToBePressedFirst` configuration [ISXB-806](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-806).
3232
- Fixed an issue in `Samples/Visualizers/GamepadVisualizer.unity` sample where the visualization wouldn't handle device disconnects or current device changes properly (ISXB-1243).
3333
- Fixed an issue when displaying Serialized InputAction's Processor properties inside the Inspector window. [ISXB-1269](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1269)
34+
- Fixed an issue with default device selection when adding new Control Scheme.
3435

3536
### Changed
3637
- Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086).

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Commands/ControlSchemeCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static Command AddNewControlScheme()
1818
{
1919
state.m_Analytics?.RegisterControlSchemeEdit();
2020
return state.With(selectedControlScheme: new InputControlScheme(
21-
MakeUniqueControlSchemeName(state, kNewControlSchemeName)));
21+
MakeUniqueControlSchemeName(state, kNewControlSchemeName)), selectedDeviceRequirementIndex: -1);
2222
};
2323
}
2424

0 commit comments

Comments
 (0)