diff src/video/cocoa/SDL_cocoamouse.m @ 5060:2170edcdfbd0

Fixed mouse button index for additional mouse buttons
author Sam Lantinga <slouken@libsdl.org>
date Thu, 20 Jan 2011 17:29:13 -0800
parents 03db7d4b02b4
children b530ef003506
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamouse.m	Fri Jan 21 00:25:08 2011 +0100
+++ b/src/video/cocoa/SDL_cocoamouse.m	Thu Jan 20 17:29:13 2011 -0800
@@ -43,7 +43,7 @@
         case 2:
             return(SDL_BUTTON_MIDDLE); /* 2 */
     }
-    return button;
+    return button+1;
 }
 
 void