SunsetHigh.KeyboardManager.isKeyUnpressed C# (CSharp) Method

isKeyUnpressed() public static method

Checks if the given key has just been released (i.e. it is up now and was pressed in the previous update)
public static isKeyUnpressed ( Keys key ) : bool
key Keys The key to check for
return bool
        public static bool isKeyUnpressed(Keys key)
        {
            if (currentState == null || priorState == null)
                return false;
            return currentState.IsKeyUp(key) && !priorState.IsKeyUp(key);
        }