mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 23:05:55 +00:00
[Win] Implemented modifier keys
This commit is contained in:
parent
c92aabd807
commit
9ba21d6017
|
@ -511,11 +511,13 @@ namespace OpenTK.Platform.Windows
|
||||||
if (pressed)
|
if (pressed)
|
||||||
{
|
{
|
||||||
key_down.Key = key;
|
key_down.Key = key;
|
||||||
|
key_down.Modifiers = keyboard.GetModifiers();
|
||||||
KeyDown(this, key_down);
|
KeyDown(this, key_down);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
key_up.Key = key;
|
key_up.Key = key;
|
||||||
|
key_up.Modifiers = keyboard.GetModifiers();
|
||||||
KeyUp(this, key_up);
|
KeyUp(this, key_up);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue