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 21e988d commit cd71aa701a9ce7253ec3b069004f520af1ab1f38
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/video/cocoa/SDL_cocoaevents.m
  2. +1 −1 src/video/cocoa/SDL_cocoamouse.m
@@ -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];
@@ -43,7 +43,7 @@
case 2:
return(SDL_BUTTON_MIDDLE); /* 2 */
}
return button;
return button+1;
}

void

0 comments on commit cd71aa7

Please sign in to comment.