Skip to content

Commit 2b5eadf

Browse files
committed
Update test action asset.
1 parent dc11f07 commit 2b5eadf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Assets/Tests/InputSystem/Plugins/InputForUITests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,14 @@ public void InputSystemActionAssetIsNotNull()
9696
"Test is invalid since InputSystemProvider actions are not available");
9797
}
9898

99-
// SelectInputActionAsset() only requires a map named "UI" to exist; no specific
100-
// actions are needed for the provider lifecycle tests.
99+
// Creates a minimal project-wide asset recognised by SelectInputActionAsset().
100+
// At least one action is required: InputActionMap.enabled is m_EnabledActionsCount > 0,
101+
// so an empty map can never report as enabled.
101102
static InputActionAsset CreateProjectWideAssetWithUIMap(out InputActionMap uiMap)
102103
{
103104
var asset = ScriptableObject.CreateInstance<InputActionAsset>();
104105
uiMap = new InputActionMap("UI");
106+
uiMap.AddAction("Point", InputActionType.PassThrough, "<Mouse>/position");
105107
asset.AddActionMap(uiMap);
106108
return asset;
107109
}

0 commit comments

Comments
 (0)