public GamepadManager(IJSRuntime jsRuntime, GamepadManagerOptions options) { _jsRuntime = jsRuntime; _updateTimer = new System.Timers.Timer(options.Latency.TotalMilliseconds); _updateTimer.Elapsed += Update; _updateTimer.Enabled = false; }
public GamepadManagerResolver(IJSRuntime jsRuntime, IOptions <GamepadManagerOptions> options) { _jsRuntime = jsRuntime; _options = options?.Value ?? new GamepadManagerOptions(); }