Skip to content

Commit b4971d3

Browse files
committed
Made sure mocked test runtime is initialized with 60 Hz polling frequency by default.
1 parent f1d7e2c commit b4971d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.unity.inputsystem/Tests/TestFixture/InputTestRuntime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public struct PairedUser
359359
public Action onShutdown { get; set; }
360360
public Action<bool> onPlayerFocusChanged { get; set; }
361361
public bool isPlayerFocused => m_HasFocus;
362-
public float pollingFrequency { get; set; }
362+
public float pollingFrequency { get; set; } = 60.0f; // At least 60 Hz by default
363363
public double currentTime { get; set; }
364364
public double currentTimeForFixedUpdate { get; set; }
365365
public float unscaledGameTime { get; set; } = 1;

0 commit comments

Comments
 (0)