Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed mouse button index for additional mouse buttons

  • Loading branch information
slouken committed Jan 21, 2011
1 parent cd71aa7 commit 8b3bcdc582553dbbc6278c252cbd8546bab46fdb
Showing with 2 additions and 2 deletions.
  1. +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);

0 comments on commit 8b3bcdc

Please sign in to comment.