SolutionLecture5.InputManager.IsKeyPressed C# (CSharp) Method

IsKeyPressed() public method

public IsKeyPressed ( Keys key ) : bool
key Keys
return bool
        public bool IsKeyPressed(Keys key)
        {
            return _curKeyState.IsKeyDown(key) && _prevKeystate.IsKeyUp(key);
        }