# HG changeset patch # User Sam Lantinga # Date 1295573586 28800 # Node ID 9e9940eae455c6cd42385261482ae99dbcc12992 # Parent 2170edcdfbd07a3a8753ac7c7b7283a1653ea460 Fixed mouse button index for additional mouse buttons diff -r 2170edcdfbd0 -r 9e9940eae455 src/video/cocoa/SDL_cocoawindow.m --- a/src/video/cocoa/SDL_cocoawindow.m Thu Jan 20 17:29:13 2011 -0800 +++ b/src/video/cocoa/SDL_cocoawindow.m Thu Jan 20 17:33:06 2011 -0800 @@ -180,7 +180,7 @@ button = SDL_BUTTON_MIDDLE; break; default: - button = [theEvent buttonNumber]; + button = [theEvent buttonNumber] + 1; break; } SDL_SendMouseButton(_data->window, SDL_PRESSED, button); @@ -211,7 +211,7 @@ button = SDL_BUTTON_MIDDLE; break; default: - button = [theEvent buttonNumber]; + button = [theEvent buttonNumber] + 1; break; } SDL_SendMouseButton(_data->window, SDL_RELEASED, button);