mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
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…
x
Reference in New Issue
Block a user