Binarysharp.MemoryManagement.Windows.Keyboard.BaseKeyboard.Release C# (CSharp) Method

Release() public method

Releases the specified virtual key to the window.
public Release ( Keys key ) : void
key Keys The virtual key to release.
return void
        public virtual void Release(Keys key)
        {
            // Create the tuple
            var tuple = Tuple.Create(Window.Handle, key);

            // If the key is pressed with an interval
            if (PressedKeys.Contains(tuple))
                PressedKeys.Remove(tuple);
        }
        #endregion