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; }
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)."); }
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)."); }