public override void Update(GamePadState state) { PreviouslyActive = Active; _gamePadButton.Update(state); JoyStick.Update(state); Active = _gamePadButton.Active || JoyStick.Contains(Button); }
public JoyStickGamePadButton(Buttons button, PlayerIndex player = PlayerIndex.One, bool leftStick = true) { Button = button; Player = player; JoyStick = new JoyStick(leftStick); }