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

IsKeyPressed() 공개 메소드

Checks if a given key is currently being pressed (Was not pressed last state, but now is)
public IsKeyPressed ( Keys key ) : bool
key Keys
리턴 bool
        public bool IsKeyPressed(Keys key)
        {
            return CurrentKeyboardState.IsKeyDown(key) && PreviousKeyboardState.IsKeyUp(key);
        }