Skip to content

Commit 6a11944

Browse files
committed
Tentative fix
1 parent 04fa062 commit 6a11944

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/Actions/InputActionState.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,9 @@ private void EnableControls(int mapIndex, int controlStartIndex, int numControls
11531153
if (IsControlEnabled(controlIndex))
11541154
continue;
11551155

1156+
if (controls[controlIndex].device.m_DeviceIndex < 0)
1157+
return;
1158+
11561159
var bindingIndex = controlIndexToBindingIndex[controlIndex];
11571160
var mapControlAndBindingIndex = ToCombinedMapAndControlAndBindingIndex(mapIndex, controlIndex, bindingIndex);
11581161

0 commit comments

Comments
 (0)