Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 17, 2004
1 parent 658569f commit 5a02414
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/video/quartz/SDL_QuartzEvents.m
Expand Up @@ -472,7 +472,7 @@ void QZ_PumpEvents (_THIS)
if ( getenv("SDL_HAS3BUTTONMOUSE") ) {
DO_MOUSE_DOWN (SDL_BUTTON_LEFT);
} else {
if ( NSControlKeyMask & current_mods ) {
if ( NSCommandKeyMask & current_mods ) {
last_virtual_button = SDL_BUTTON_RIGHT;
DO_MOUSE_DOWN (SDL_BUTTON_RIGHT);
}
Expand Down Expand Up @@ -519,18 +519,7 @@ void QZ_PumpEvents (_THIS)
case NSLeftMouseDragged:
case NSRightMouseDragged:
case NSOtherMouseDragged: /* usually middle mouse dragged */
case NSMouseMoved:
/* Show the cursor if it was hidden by SDL_ShowCursor() */
/* this is how games I've seen work */
if (!cursor_visible) {
if (!isInGameWin && cursor_hidden) {
ShowCursor();
cursor_hidden = NO;
} else if (isInGameWin && !cursor_hidden) {
HideCursor();
cursor_hidden = YES;
}
}
case NSMouseMoved:
if ( grab_state == QZ_INVISIBLE_GRAB ) {

/*
Expand Down Expand Up @@ -653,6 +642,6 @@ but not as a result of the warp (so it's in the right direction).
/* handle accumulated mouse moved events */
if (dx != 0 || dy != 0)
SDL_PrivateMouseMotion (0, 1, dx, dy);

[ pool release ];
}

0 comments on commit 5a02414

Please sign in to comment.