Enabled KeyDown and KeyUp events in NativeWindow.

This commit is contained in:
Elias Holzer 2013-11-22 18:03:17 +01:00
parent e2404d2cfc
commit 38532804ec

View file

@ -999,12 +999,24 @@ namespace OpenTK
#endregion #endregion
#region OnKeyDownInternal
private void OnKeyDownInternal(object sender, KeyboardKeyEventArgs e) { OnKeyDown(e); }
#endregion
#region OnKeyPressInternal #region OnKeyPressInternal
private void OnKeyPressInternal(object sender, KeyPressEventArgs e) { OnKeyPress(e); } private void OnKeyPressInternal(object sender, KeyPressEventArgs e) { OnKeyPress(e); }
#endregion #endregion
#region OnKeyUpInternal
private void OnKeyUpInternal(object sender, KeyboardKeyEventArgs e) { OnKeyUp(e); }
#endregion
#region OnMouseEnterInternal #region OnMouseEnterInternal
private void OnMouseEnterInternal(object sender, EventArgs e) { OnMouseEnter(e); } private void OnMouseEnterInternal(object sender, EventArgs e) { OnMouseEnter(e); }
@ -1074,7 +1086,9 @@ namespace OpenTK
implementation.Disposed += OnDisposedInternal; implementation.Disposed += OnDisposedInternal;
implementation.FocusedChanged += OnFocusedChangedInternal; implementation.FocusedChanged += OnFocusedChangedInternal;
implementation.IconChanged += OnIconChangedInternal; implementation.IconChanged += OnIconChangedInternal;
implementation.KeyDown += OnKeyDownInternal;
implementation.KeyPress += OnKeyPressInternal; implementation.KeyPress += OnKeyPressInternal;
implementation.KeyUp += OnKeyUpInternal;
implementation.MouseEnter += OnMouseEnterInternal; implementation.MouseEnter += OnMouseEnterInternal;
implementation.MouseLeave += OnMouseLeaveInternal; implementation.MouseLeave += OnMouseLeaveInternal;
implementation.Move += OnMoveInternal; implementation.Move += OnMoveInternal;
@ -1092,7 +1106,9 @@ namespace OpenTK
implementation.Disposed -= OnDisposedInternal; implementation.Disposed -= OnDisposedInternal;
implementation.FocusedChanged -= OnFocusedChangedInternal; implementation.FocusedChanged -= OnFocusedChangedInternal;
implementation.IconChanged -= OnIconChangedInternal; implementation.IconChanged -= OnIconChangedInternal;
implementation.KeyDown -= OnKeyDownInternal;
implementation.KeyPress -= OnKeyPressInternal; implementation.KeyPress -= OnKeyPressInternal;
implementation.KeyUp -= OnKeyUpInternal;
implementation.MouseEnter -= OnMouseEnterInternal; implementation.MouseEnter -= OnMouseEnterInternal;
implementation.MouseLeave -= OnMouseLeaveInternal; implementation.MouseLeave -= OnMouseLeaveInternal;
implementation.Move -= OnMoveInternal; implementation.Move -= OnMoveInternal;