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