Browse Source

Added Repeate Codes for key ( Just spoofing key down like a PC ) :(

Roger Hughston 19 years ago
parent
commit
1afccc2d19
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/osxdisplay/osxGraphicsWindow.cxx

+ 2 - 0
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},				   
         };