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) ...@@ -201,8 +201,8 @@ Cocoa_PumpEvents(_THIS)
case NSLeftMouseDragged: case NSLeftMouseDragged:
case NSRightMouseDragged: case NSRightMouseDragged:
case NSOtherMouseDragged: /* usually middle mouse dragged */ case NSOtherMouseDragged: /* usually middle mouse dragged */
case NSScrollWheel:
case NSMouseMoved: case NSMouseMoved:
case NSScrollWheel:
Cocoa_HandleMouseEvent(_this, event); Cocoa_HandleMouseEvent(_this, event);
/* Pass through to NSApp to make sure everything stays in sync */ /* Pass through to NSApp to make sure everything stays in sync */
[NSApp sendEvent:event]; [NSApp sendEvent:event];
......
...@@ -43,7 +43,7 @@ ConvertMouseButtonToSDL(int button) ...@@ -43,7 +43,7 @@ ConvertMouseButtonToSDL(int button)
case 2: case 2:
return(SDL_BUTTON_MIDDLE); /* 2 */ return(SDL_BUTTON_MIDDLE); /* 2 */
} }
return button; return button+1;
} }
void 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