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