Example #1
0
 public void SetMode(int mode)
 {
     if (!ModeProfiles.ContainsKey(mode))
     {
         Logging.Log.Debug($"Tried to change device to Mode {mode}, but there was no profile for it. Profile will remain unchanged. Device ID: {DeviceId}, Device Name: {Name}");
         return;
     }
     ButtonMap = ModeProfiles[mode];
     _hotasQueue.SetMode(mode);
 }