Commit 06050f8b authored by Sam Lantinga's avatar Sam Lantinga

Fixed mouse button index for additional mouse buttons

parent 6a6cc495
......@@ -201,8 +201,8 @@ Cocoa_PumpEvents(_THIS)
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 @@ ConvertMouseButtonToSDL(int button)
case 2:
return(SDL_BUTTON_MIDDLE); /* 2 */
}
return button;
return button+1;
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment