From 1afccc2d197d0003f4cbbc88814daa13a8cfe6da Mon Sep 17 00:00:00 2001 From: Roger Hughston Date: Fri, 26 May 2006 20:01:09 +0000 Subject: [PATCH] Added Repeate Codes for key ( Just spoofing key down like a PC ) :( --- panda/src/osxdisplay/osxGraphicsWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/osxdisplay/osxGraphicsWindow.cxx b/panda/src/osxdisplay/osxGraphicsWindow.cxx index 25a4797a30..bb0502bc5a 100644 --- a/panda/src/osxdisplay/osxGraphicsWindow.cxx +++ b/panda/src/osxdisplay/osxGraphicsWindow.cxx @@ -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}, };