Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed mouse button index for additional mouse buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 21, 2011
1 parent 21e988d commit cd71aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -201,8 +201,8 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende
case NSLeftMouseDragged:
case NSRightMouseDragged:
case NSOtherMouseDragged: /* usually middle mouse dragged */
case NSScrollWheel:
case NSMouseMoved:
case NSScrollWheel:
Cocoa_HandleMouseEvent(_this, event);
/* Pass through to NSApp to make sure everything stays in sync */
[NSApp sendEvent:event];
Expand Down
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoamouse.m
Expand Up @@ -43,7 +43,7 @@
case 2:
return(SDL_BUTTON_MIDDLE); /* 2 */
}
return button;
return button+1;
}

void
Expand Down

0 comments on commit cd71aa7

Please sign in to comment.