public void MapControls(Usb.GameControllers.Thrustmaster.Warthog.Throttle.Joystick warthog) { // Add in the mappings Disposables = new List <IDisposable> { warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottle75Command.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleButtonStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleCameraCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleClearMessages.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleCycleCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleHardpointsCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Subscribe(x => TmThrottleHat.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleLandedStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleLandingGearCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleLightsCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleHeatSinkCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleShieldCellCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleSecondaryFireCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), //warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleSilentCommand.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Subscribe(x => TmThrottleSliderJoystick.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleStateModifier.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), //warthog.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => TmThrottleVoiceCommandHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Subscribe(x => TmThrottleXYJoystick.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), warthog.Subscribe(x => TmThrottleZJoystick.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), }; }
public void MapControls(Usb.GameControllers.LeoBodnar.BBI32.Joystick bbi32) { // Add in the mappings Disposables = new List <IDisposable> { bbi32.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => BBI32ButtonStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), bbi32.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => BBI32UtilCommandsStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), //bbi32.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => BBI32VoicemeeterHandler.Process(x, this), ex => log.Error($"Exception : {ex}")), }; }
public void MapControls(Usb.GameControllers.Microsoft.Sidewinder.GameVoice.Joystick swgv) { // Add in the mappings Disposables = new List <IDisposable> { //swgv.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => SwGameButtonStateHandler.Process(x, this), ex => log.Error($"Exception : {ex}")), //swgv.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => SwGameLandingGearHandler.Process(x, this), ex => log.Error($"Exception : {ex}")), swgv.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => SwGameVoicemeeterHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), //swgv.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => SwGameMuteHandler.Process(x, this), ex => log.Error($"Exception : {ex}")) }; }
public void MapControls(Usb.GameControllers.Microsoft.Sidewinder.StrategicCommander.Joystick swsc) { // Add in the mappings Disposables = new List <IDisposable> { swsc.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => SwCommanderButtonStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), swsc.Subscribe(x => SwCommanderProfileHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), swsc.Subscribe(x => SwCommanderXYZJoystick.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), swsc.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => SwCommanderProgramIds.Process(x, this), ex => Logger.LogError($"Exception : {ex}")) }; }
public void MapControls(Usb.GameControllers.Microsoft.Sidewinder.ForceFeedback2.Joystick ffb2) { // Add in the mappings Disposables = new List <IDisposable> { ffb2.Subscribe(x => Swff2XYJoystick.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), ffb2.Subscribe(x => Swff2ZJoystick.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), ffb2.Subscribe(x => Swff2SliderJoystick.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), ffb2.Subscribe(x => Swff2Hat.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), ffb2.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => Swff2ButtonsStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), ffb2.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => Swff2ClipboardStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), ffb2.Where(x => Reactive.ButtonsChanged(x)).Subscribe(x => Swff2UtilCommandsStateHandler.Process(x, this), ex => Logger.LogError($"Exception : {ex}")), }; }