# HG changeset patch # User Sam Lantinga # Date 1295573353 28800 # Node ID 2170edcdfbd07a3a8753ac7c7b7283a1653ea460 # Parent 00d1fef487c59abefdd3c13d4a2a75082a6ec172 Fixed mouse button index for additional mouse buttons diff -r 00d1fef487c5 -r 2170edcdfbd0 src/video/cocoa/SDL_cocoaevents.m --- a/src/video/cocoa/SDL_cocoaevents.m Fri Jan 21 00:25:08 2011 +0100 +++ b/src/video/cocoa/SDL_cocoaevents.m Thu Jan 20 17:29:13 2011 -0800 @@ -201,8 +201,8 @@ case NSLeftMouseDragged: case NSRightMouseDragged: case NSOtherMouseDragged: /* usually middle mouse dragged */ + case NSMouseMoved: case NSScrollWheel: - case NSMouseMoved: Cocoa_HandleMouseEvent(_this, event); /* Pass through to NSApp to make sure everything stays in sync */ [NSApp sendEvent:event]; diff -r 00d1fef487c5 -r 2170edcdfbd0 src/video/cocoa/SDL_cocoamouse.m --- a/src/video/cocoa/SDL_cocoamouse.m Fri Jan 21 00:25:08 2011 +0100 +++ b/src/video/cocoa/SDL_cocoamouse.m Thu Jan 20 17:29:13 2011 -0800 @@ -43,7 +43,7 @@ case 2: return(SDL_BUTTON_MIDDLE); /* 2 */ } - return button; + return button+1; } void