Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed mouse button index for additional mouse buttons
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/video/cocoa/SDL_cocoawindow.m
|
@@ -180,7 +180,7 @@ - (void)mouseDown:(NSEvent *)theEvent |
|
|
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 @@ - (void)mouseUp:(NSEvent *)theEvent |
|
|
button = SDL_BUTTON_MIDDLE; |
|
|
break; |
|
|
default: |
|
|
button = [theEvent buttonNumber]; |
|
|
button = [theEvent buttonNumber] + 1; |
|
|
break; |
|
|
} |
|
|
SDL_SendMouseButton(_data->window, SDL_RELEASED, button); |
|
|