Bricklayer.Client.InputHandler.WasKeyPressed C# (CSharp) 메소드

WasKeyPressed() 공개 메소드

Checks if a given key has been toggled (Was pressed last state, but now isn't)
public WasKeyPressed ( Keys key ) : bool
key Keys
리턴 bool
        public bool WasKeyPressed(Keys key)
        {
            return CurrentKeyboardState.IsKeyUp(key) && PreviousKeyboardState.IsKeyDown(key);
        }