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