Пример #1
0
 /// <summary>
 /// The button was pressed between this and last frame (and is still pressed in the current frame)
 /// </summary>
 /// <param name="button">On button</param>
 /// <returns>True if the button was just pressed, otherwise false</returns>
 public bool IsJustPressed(Buttons button)
 {
     return(LastFrame.IsButtonUp(button) && CurrentFrame.IsButtonDown(button));
 }