Example #1
0
        private void SpecialLogitechFix(LogitechOptions logitech)
        {
            if (SettingsHolder.Drive.WatchForSharedMemory)
            {
                AcSharedMemory.Instance.Start += OnStart;
            }
            else
            {
                Task.Delay(5000).ContinueWith(t => logitech.OnGameStarted());
            }

            void OnStart(object sender, EventArgs eventArgs)
            {
                AcSharedMemory.Instance.Start -= OnStart;
                logitech.OnGameStarted();
            }
        }
Example #2
0
 public LogitechG25()
 {
     _options = new LogitechOptions(OnGameStarted);
 }