Exemple #1
0
 public static bool GamePadButtonDown(Buttons button)
 {
     return(NewGamePadState.IsButtonDown(button) &&
            OldGamePadState.IsButtonUp(button));
 }
Exemple #2
0
 public static bool GamePadButtonPressed(Buttons button)
 {
     return(NewGamePadState.IsButtonDown(button));
 }