mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:06:52 +00:00
[Input] Fixed key modifiers in KeyboardDevice events
This commit is contained in:
parent
d787656328
commit
d03e9d82dc
|
@ -211,12 +211,14 @@ namespace OpenTK.Input
|
||||||
{
|
{
|
||||||
args.Key = key;
|
args.Key = key;
|
||||||
args.ScanCode = scancode;
|
args.ScanCode = scancode;
|
||||||
|
args.Modifiers = GetModifiers();
|
||||||
KeyDown(this, args);
|
KeyDown(this, args);
|
||||||
}
|
}
|
||||||
else if (!state && KeyUp != null)
|
else if (!state && KeyUp != null)
|
||||||
{
|
{
|
||||||
args.Key = key;
|
args.Key = key;
|
||||||
args.ScanCode = scancode;
|
args.ScanCode = scancode;
|
||||||
|
args.Modifiers = GetModifiers();
|
||||||
KeyUp(this, args);
|
KeyUp(this, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue