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