Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoawindow.m @ 5061:9e9940eae455
Fixed mouse button index for additional mouse buttons
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 20 Jan 2011 17:33:06 -0800 |
parents | 00d1fef487c5 |
children | 58265e606e4e |
line wrap: on
line diff
--- 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);