mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-05-31 10:07:12 +00:00
Fixed OpenTK/Carbon key repeat behavior to match the other backends
This commit is contained in:
parent
c13d80d6d8
commit
1189b33ed5
|
@ -379,13 +379,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
{
|
{
|
||||||
case KeyboardEventKind.RawKeyRepeat:
|
case KeyboardEventKind.RawKeyRepeat:
|
||||||
if (InputDriver.Keyboard[0].KeyRepeat)
|
if (InputDriver.Keyboard[0].KeyRepeat)
|
||||||
{
|
goto case KeyboardEventKind.RawKeyDown;
|
||||||
// Repeat KeyPress events until KeyUp
|
|
||||||
if (!Char.IsControl(mKeyPressArgs.KeyChar))
|
|
||||||
{
|
|
||||||
OnKeyPress(mKeyPressArgs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case KeyboardEventKind.RawKeyDown:
|
case KeyboardEventKind.RawKeyDown:
|
||||||
|
|
Loading…
Reference in a new issue