src/video/cocoa/SDL_cocoawindow.m
changeset 6514 e94c2eaaa1ab
parent 6489 31449ea8f934
child 6662 698c2e533a7e
equal deleted inserted replaced
6513:c781fb99ce39 6514:e94c2eaaa1ab
   220 
   220 
   221     /* Some other window will get keyboard events, since we're not key. */
   221     /* Some other window will get keyboard events, since we're not key. */
   222     if (SDL_GetKeyboardFocus() == _data->window) {
   222     if (SDL_GetKeyboardFocus() == _data->window) {
   223         SDL_SetKeyboardFocus(NULL);
   223         SDL_SetKeyboardFocus(NULL);
   224     }
   224     }
       
   225 }
       
   226 
       
   227 // We'll respond to key events by doing nothing so we don't beep.
       
   228 // We could handle key messages here, but we lose some in the NSApp dispatch,
       
   229 // where they get converted to action messages, etc.
       
   230 - (void)flagsChanged:(NSEvent *)theEvent
       
   231 {
       
   232     //Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
       
   233 }
       
   234 - (void)keyDown:(NSEvent *)theEvent
       
   235 {
       
   236     //Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
       
   237 }
       
   238 - (void)keyUp:(NSEvent *)theEvent
       
   239 {
       
   240     //Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
       
   241 }
       
   242 
       
   243 // We'll respond to selectors by doing nothing so we don't beep.
       
   244 // The escape key gets converted to a "cancel" selector, etc.
       
   245 - (void)doCommandBySelector:(SEL)aSelector
       
   246 {
       
   247     //NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));
   225 }
   248 }
   226 
   249 
   227 - (void)mouseDown:(NSEvent *)theEvent
   250 - (void)mouseDown:(NSEvent *)theEvent
   228 {
   251 {
   229     int button;
   252     int button;