Ejemplo n.º 1
0
 public GameController(IInputDevice directInput, InputMapperBase mapper)
 {
     inputDevice      = directInput;
     this.mapper      = mapper;
     xOutputInterface = createXOutput();
     xInput           = new XOutputDevice(directInput, mapper);
     if (mapper.SelectedDPad == -1 && directInput.DPads.Any())
     {
         mapper.SelectedDPad = 0;
     }
     running = false;
 }
Ejemplo n.º 2
0
 public GameController(InputMapper mapper)
 {
     this.mapper    = mapper;
     xOutputManager = ApplicationContext.Global.Resolve <XOutputManager>();
     xInput         = new XOutputDevice(mapper);
     if (!string.IsNullOrEmpty(mapper.ForceFeedbackDevice))
     {
         var device = InputDevices.Instance.GetDevices().OfType <DirectDevice>().FirstOrDefault(d => d.UniqueId == mapper.ForceFeedbackDevice);
         if (device != null)
         {
             ForceFeedbackDevice = device;
         }
     }
     running = false;
 }
Ejemplo n.º 3
0
 public GameController(InputMapper mapper)
 {
     this.mapper      = mapper;
     xOutputInterface = CreateXOutput();
     xInput           = new XOutputDevice(mapper);
     if (!string.IsNullOrEmpty(mapper.ForceFeedbackDevice))
     {
         var device = InputDevices.Instance.GetDevices().OfType <DirectDevice>().FirstOrDefault(d => d.UniqueId == mapper.ForceFeedbackDevice);
         if (device != null)
         {
             ForceFeedbackDevice = device;
         }
     }
     running = false;
 }