Skip to content
Browse files

[Win] Implemented modifier keys

  • Loading branch information...
1 parent c92aabd commit 9ba21d601787a046cb35bdd627634154c51cd91f @thefiddler thefiddler committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/OpenTK/Platform/Windows/WinGLNative.cs
View
2 Source/OpenTK/Platform/Windows/WinGLNative.cs
@@ -511,11 +511,13 @@ void HandleKeyboard(IntPtr handle, WindowMessage message, IntPtr wParam, IntPtr
if (pressed)
{
key_down.Key = key;
+ key_down.Modifiers = keyboard.GetModifiers();
KeyDown(this, key_down);
}
else
{
key_up.Key = key;
+ key_up.Modifiers = keyboard.GetModifiers();
KeyUp(this, key_up);
}
}

0 comments on commit 9ba21d6

Please sign in to comment.
Something went wrong with that request. Please try again.