SunsetHigh.KeyboardManager.isKeyDown C# (CSharp) Method

isKeyDown() public static method

Checks if the given key is currently down (pressed)
public static isKeyDown ( Keys key ) : bool
key Keys The key to check for
return bool
        public static bool isKeyDown(Keys key)
        {
            if (currentState == null || priorState == null)
                return false;
            return currentState.IsKeyDown(key);
        }