Mercurial > sdl-ios-xcode
changeset 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 | 2170edcdfbd0 |
children | e8916fe9cfc8 |
files | src/video/cocoa/SDL_cocoawindow.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);