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 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)
|
||||||
case 2:
|
case 2:
|
||||||
return(SDL_BUTTON_MIDDLE); /* 2 */
|
return(SDL_BUTTON_MIDDLE); /* 2 */
|
||||||
}
|
}
|
||||||
return button;
|
return button+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue