Exemplo n.º 1
0
 /// <summary>
 /// Returns if a button is currently down
 /// </summary>
 /// <param name="button">Button to check</param>
 /// <returns>True if the button is currently down</returns>
 public Boolean IsButtonDown(Buttons button)
 {
     return(CurrPad.IsButtonDown(button));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns if a button was just tapped
 /// </summary>
 /// <param name="button">Button to check</param>
 /// <returns>True if button was just tapped</returns>
 public Boolean IsButtonTapped(Buttons button)
 {
     return(CurrPad.IsButtonDown(button) && !PrevPad.IsButtonDown(button));
 }