Added Repeate Codes for key ( Just spoofing key down like a PC ) :(
This commit is contained in:
parent
3fcd37e21c
commit
1afccc2d19
|
|
@ -303,6 +303,7 @@ static pascal OSStatus appEvtHndlr (EventHandlerCallRef myHandler, EventRef even
|
|||
case kEventClassKeyboard:
|
||||
{
|
||||
switch (kind) {
|
||||
case kEventRawKeyRepeat:
|
||||
case kEventRawKeyDown:
|
||||
result = osx_win->handleKeyInput (myHandler, event, true);
|
||||
break;
|
||||
|
|
@ -762,6 +763,7 @@ bool osxGraphicsWindow::OSOpenWindow(WindowProperties &req_properties )
|
|||
{ kEventClassMouse, kEventMouseWheelMoved } ,
|
||||
{ kEventClassKeyboard, kEventRawKeyDown },
|
||||
{ kEventClassKeyboard, kEventRawKeyUp } ,
|
||||
{ kEventClassKeyboard, kEventRawKeyRepeat },
|
||||
{ kEventClassKeyboard, kEventRawKeyModifiersChanged } ,
|
||||
{kEventClassTextInput, kEventTextInputUnicodeForKeyEvent},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue