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));
 }
Exemplo n.º 3
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.º 4
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));
 }