Bricklayer.Client.InputHandler.IsKeyPressed C# (CSharp) Méthode

IsKeyPressed() public méthode

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