示例#1
0
 protected ControllerData(InputTypes inputType, int maxButton, InputStates[] buttons, JoystickData leftStick,
                          JoystickData rightStick) : base(inputType)
 {
     this.maxButton  = maxButton;
     this.buttons    = buttons;
     this.leftStick  = leftStick;
     this.rightStick = rightStick;
 }
示例#2
0
 public GamepadData(InputTypes type, InputStates[] buttons, JoystickData leftStick, JoystickData rightStick) :
     base(type, MaxButton, buttons, leftStick, rightStick)
 {
     Debug.Assert(type == InputTypes.Xbox360 || type == InputTypes.Xbone, "Invalid input type passed into " +
                  "the gamepad constructor (must be Xbox-related).");
 }
示例#3
0
 public DualshockData(InputTypes type, InputStates[] buttons, JoystickData leftStick, JoystickData rightStick) :
     base(type, MaxButton, buttons, leftStick, rightStick)
 {
     Debug.Assert(type == InputTypes.DS3 || type == InputTypes.DS4, "Invalid input type passed into the " +
                  "dualshock constructor (must be Playstation-related).");
 }