comparison src/video/cocoa/SDL_cocoaevents.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 bdff53ed6c8b
children b530ef003506
comparison
equal deleted inserted replaced
5059:00d1fef487c5 5060:2170edcdfbd0
199 case NSOtherMouseUp: 199 case NSOtherMouseUp:
200 case NSRightMouseUp: 200 case NSRightMouseUp:
201 case NSLeftMouseDragged: 201 case NSLeftMouseDragged:
202 case NSRightMouseDragged: 202 case NSRightMouseDragged:
203 case NSOtherMouseDragged: /* usually middle mouse dragged */ 203 case NSOtherMouseDragged: /* usually middle mouse dragged */
204 case NSMouseMoved:
204 case NSScrollWheel: 205 case NSScrollWheel:
205 case NSMouseMoved:
206 Cocoa_HandleMouseEvent(_this, event); 206 Cocoa_HandleMouseEvent(_this, event);
207 /* Pass through to NSApp to make sure everything stays in sync */ 207 /* Pass through to NSApp to make sure everything stays in sync */
208 [NSApp sendEvent:event]; 208 [NSApp sendEvent:event];
209 break; 209 break;
210 case NSKeyDown: 210 case NSKeyDown: