--- 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);