Esempio n. 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();
            }
        }