Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
5059:00d1fef487c5 | 5060:2170edcdfbd0 |
---|---|
41 case 1: | 41 case 1: |
42 return(SDL_BUTTON_RIGHT); /* 3 */ | 42 return(SDL_BUTTON_RIGHT); /* 3 */ |
43 case 2: | 43 case 2: |
44 return(SDL_BUTTON_MIDDLE); /* 2 */ | 44 return(SDL_BUTTON_MIDDLE); /* 2 */ |
45 } | 45 } |
46 return button; | 46 return button+1; |
47 } | 47 } |
48 | 48 |
49 void | 49 void |
50 Cocoa_HandleMouseEvent(_THIS, NSEvent *event) | 50 Cocoa_HandleMouseEvent(_THIS, NSEvent *event) |
51 { | 51 { |