mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-08 10:10:00 +00:00
Enabled KeyDown and KeyUp events in NativeWindow.
This commit is contained in:
parent
e2404d2cfc
commit
38532804ec
|
@ -999,12 +999,24 @@ namespace OpenTK
|
|||
|
||||
#endregion
|
||||
|
||||
#region OnKeyDownInternal
|
||||
|
||||
private void OnKeyDownInternal(object sender, KeyboardKeyEventArgs e) { OnKeyDown(e); }
|
||||
|
||||
#endregion
|
||||
|
||||
#region OnKeyPressInternal
|
||||
|
||||
private void OnKeyPressInternal(object sender, KeyPressEventArgs e) { OnKeyPress(e); }
|
||||
|
||||
#endregion
|
||||
|
||||
#region OnKeyUpInternal
|
||||
|
||||
private void OnKeyUpInternal(object sender, KeyboardKeyEventArgs e) { OnKeyUp(e); }
|
||||
|
||||
#endregion
|
||||
|
||||
#region OnMouseEnterInternal
|
||||
|
||||
private void OnMouseEnterInternal(object sender, EventArgs e) { OnMouseEnter(e); }
|
||||
|
@ -1074,7 +1086,9 @@ namespace OpenTK
|
|||
implementation.Disposed += OnDisposedInternal;
|
||||
implementation.FocusedChanged += OnFocusedChangedInternal;
|
||||
implementation.IconChanged += OnIconChangedInternal;
|
||||
implementation.KeyDown += OnKeyDownInternal;
|
||||
implementation.KeyPress += OnKeyPressInternal;
|
||||
implementation.KeyUp += OnKeyUpInternal;
|
||||
implementation.MouseEnter += OnMouseEnterInternal;
|
||||
implementation.MouseLeave += OnMouseLeaveInternal;
|
||||
implementation.Move += OnMoveInternal;
|
||||
|
@ -1092,7 +1106,9 @@ namespace OpenTK
|
|||
implementation.Disposed -= OnDisposedInternal;
|
||||
implementation.FocusedChanged -= OnFocusedChangedInternal;
|
||||
implementation.IconChanged -= OnIconChangedInternal;
|
||||
implementation.KeyDown -= OnKeyDownInternal;
|
||||
implementation.KeyPress -= OnKeyPressInternal;
|
||||
implementation.KeyUp -= OnKeyUpInternal;
|
||||
implementation.MouseEnter -= OnMouseEnterInternal;
|
||||
implementation.MouseLeave -= OnMouseLeaveInternal;
|
||||
implementation.Move -= OnMoveInternal;
|
||||
|
|
Loading…
Reference in a new issue