Ejemplo n.º 1
0
        public void Initialize(string devicePath)
        {
            var joystick = new Usb.GameControllers.LeoBodnar.BBI32.Joystick(devicePath, Logger);

            MapControls(joystick);
            joystick.Initialize();
        }
Ejemplo n.º 2
0
 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}")),
     };
 }