Ejemplo n.º 1
0
 public GamePadButtonAction(int id, string buttonName, ButtonSelector buttonSelector)
 {
     this.pad            = InputManager.GamePads[id];
     this.buttonName     = buttonName;
     this.buttonSelector = buttonSelector;
 }
Ejemplo n.º 2
0
 public GamePadAxisAction(int id, string axisName, AxisSelector axisSelector)
 {
     this.pad          = InputManager.GamePads[id];
     this.axisName     = axisName;
     this.axisSelector = axisSelector;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns all actions for a specified gamepad.
 /// </summary>
 /// <param name="pad">The gamepad to get actions for.</param>
 public static IEnumerable <IAction> GetAll(InputManager.GamePadStateContainer pad)
 {
     return(GamePadAction.GetAll(pad.Id));
 }