Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoaevents.m @ 5057:bdff53ed6c8b
Fix mouse wheel events in fullscreen mode for OS X
With proposed patch by vernier.
author | Jjgod Jiang <gzjjgod@gmail.com> |
---|---|
date | Fri, 21 Jan 2011 00:15:18 +0100 |
parents | 514f811a4887 |
children | 2170edcdfbd0 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaevents.m Thu Jan 20 16:05:59 2011 -0800 +++ b/src/video/cocoa/SDL_cocoaevents.m Fri Jan 21 00:15:18 2011 +0100 @@ -201,6 +201,7 @@ case NSLeftMouseDragged: case NSRightMouseDragged: case NSOtherMouseDragged: /* usually middle mouse dragged */ + case NSScrollWheel: case NSMouseMoved: Cocoa_HandleMouseEvent(_this, event); /* Pass through to NSApp to make sure everything stays in sync */