Esempio n. 1
0
        public GamepadManager(IJSRuntime jsRuntime, GamepadManagerOptions options)
        {
            _jsRuntime = jsRuntime;

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