Example #1
0
        private bool RemoveKey(VirtualKeys virtualKey)
        {
            bool result = false;

            if (!KeyPressed.Contains(virtualKey))
            {
                AddKey(virtualKey);
            }
            KeyPressed.Remove(virtualKey);
            if (KeyUsed.Contains(virtualKey))
            {
                KeyUsed.Remove(virtualKey);
                result = true;
            }
            return(result);
        }