Fixed mouse button index for additional mouse buttons
This commit is contained in:
parent
6a6cc495b4
commit
06050f8b15
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue