public Gamepad(int index) { this.index = index; name = "Gamepad" + index; isEnabled = false; enableWhenConnected = (index < Settings.amountOfGamepads); A = new Button("A", this, 0, !Settings.disableA); B = new Button("B", this, 1, !Settings.disableB); X = new Button("X", this, 2, !Settings.disableX); Y = new Button("Y", this, 3, !Settings.disableY); leftBumper = new Button("LeftBumper", this, 4, !Settings.disableLeftBumper); rightBumper = new Button("RightBumper", this, 5, !Settings.disableRightBumper); back = new Button("Back", this, 8, !Settings.disableBack); start = new Button("Start", this, 9, !Settings.disableStart); leftStickClick = new Button("LeftStickClick", this, 10, !Settings.disableLeftStickClick); rightStickClick = new Button("RightStickClick", this, 11, !Settings.disableRightStickClick); leftStick = new Stick("LeftStick", this, 0, !Settings.disableLeftStick); rightStick = new Stick("RightStick", this, 1, !Settings.disableRightStick); dPad = new Stick("DPad", this, 2, !Settings.disableDPad); vibration = new Vibration(index); SetUp(); }
// -------------------- // CONSTRUCTOR // -------------------- public StickPressedZone(string pressableName, Stick stick) : base(pressableName, stick) { }
// -------------------- // CONSTRUCTOR // -------------------- public StickDirection(string pressableName, float angle, Stick stick) : base(pressableName, stick) { this.angle = angle; }