Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoaevents.m @ 3517:e7eec78e4b92
Fixed mouse events for fullscreen windows on Mac OS X
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 03 Dec 2009 08:33:39 +0000 |
parents | 00cace2d9080 |
children | 9b1af1049f66 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaevents.m Thu Dec 03 05:05:26 2009 +0000 +++ b/src/video/cocoa/SDL_cocoaevents.m Thu Dec 03 08:33:39 2009 +0000 @@ -187,6 +187,20 @@ break; } switch ([event type]) { + case NSLeftMouseDown: + case NSOtherMouseDown: + case NSRightMouseDown: + case NSLeftMouseUp: + case NSOtherMouseUp: + case NSRightMouseUp: + case NSLeftMouseDragged: + case NSRightMouseDragged: + case NSOtherMouseDragged: /* usually middle mouse dragged */ + case NSMouseMoved: + Cocoa_HandleMouseEvent(_this, event); + /* Pass through to NSApp to make sure everything stays in sync */ + [NSApp sendEvent:event]; + break; case NSKeyDown: case NSKeyUp: case NSFlagsChanged: