Skip to content

Commit fe5ccff

Browse files
committed
fix is not operator which is rejected by the analyser
1 parent 6100e1a commit fe5ccff

File tree

1 file changed

+1
-1
lines changed
  • Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput

1 file changed

+1
-1
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ private static bool OnPreFilterUnpairedDeviceUsed(InputDevice device, InputEvent
18691869
// Early out if the device isn't usable with any of our control schemes.
18701870
var actions = all[0].actions;
18711871
// Skip Pointer device if any OnScreenControl is active since they will use it to generate device event
1872-
return actions != null && (!OnScreenControl.HasAnyActive || device is not Pointer) && actions.IsUsableWithDevice(device);
1872+
return actions != null && (!OnScreenControl.HasAnyActive || !(device is Pointer)) && actions.IsUsableWithDevice(device);
18731873
}
18741874

18751875
private void OnUnpairedDeviceUsed(InputControl control, InputEventPtr eventPtr)

0 commit comments

Comments
 (0)