src/video/cocoa/SDL_cocoawindow.m
changeset 5061 9e9940eae455
parent 5059 00d1fef487c5
child 5246 58265e606e4e
--- 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);