예제 #1
0
        internal static void InvokeRelease(KeyInfo info)
        {
            bool removed = heldKeys.Remove(info.KeyCode);

            System.Diagnostics.Debug.Assert(removed, "removed a key which wasn't pressed");

            Host.KeyReleased(info);
            KeyRelease?.Invoke(info);
        }
예제 #2
0
        protected void OnKeyRelease(object sender, KeyEventArgs args)
        {
            _pressedKeys.Remove(args.Key);

            KeyRelease?.Invoke(this, args);
        }