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); }
protected void OnKeyRelease(object sender, KeyEventArgs args) { _pressedKeys.Remove(args.Key); KeyRelease?.Invoke(this, args); }