SmashBros.Controllers.GamepadController.IsKeyPressed C# (CSharp) Method

IsKeyPressed() protected method

Checks the old keyboard state agianst the current keyboard state to determin if a key was pressed
protected IsKeyPressed ( Keys key ) : bool
key Keys Which key was pressed
return bool
        protected bool IsKeyPressed(Keys key)
        {
            return this.oldKeyboardState.IsKeyDown(key) && this.currentKeyboardState.IsKeyUp(key);
        }