Beispiel #1
0
 public static bool IsNewButtonPress(Buttons b)
 {
     return(b != 0 && CurrentGamepadState.IsButtonDown(b) && PreviousGamepadState.IsButtonUp(b));
 }
Beispiel #2
0
 public static bool IsHeldButton(Buttons b)
 {
     return(b != 0 && CurrentGamepadState.IsButtonDown(b) && PreviousGamepadState.IsButtonDown(b));
 }
Beispiel #3
0
 public static bool IsPressedButton(Buttons b)
 {
     return(b != 0 && CurrentGamepadState.IsButtonDown(b));
 }