src/video/cocoa/SDL_cocoaevents.m
changeset 3517 e7eec78e4b92
parent 3280 00cace2d9080
child 3624 9b1af1049f66
     1.1 --- a/src/video/cocoa/SDL_cocoaevents.m	Thu Dec 03 05:05:26 2009 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoaevents.m	Thu Dec 03 08:33:39 2009 +0000
     1.3 @@ -187,6 +187,20 @@
     1.4              break;
     1.5          }
     1.6          switch ([event type]) {
     1.7 +        case NSLeftMouseDown:
     1.8 +        case NSOtherMouseDown:
     1.9 +        case NSRightMouseDown:
    1.10 +        case NSLeftMouseUp:
    1.11 +        case NSOtherMouseUp:
    1.12 +        case NSRightMouseUp:
    1.13 +        case NSLeftMouseDragged:
    1.14 +        case NSRightMouseDragged:
    1.15 +        case NSOtherMouseDragged: /* usually middle mouse dragged */
    1.16 +        case NSMouseMoved:
    1.17 +            Cocoa_HandleMouseEvent(_this, event);
    1.18 +            /* Pass through to NSApp to make sure everything stays in sync */
    1.19 +            [NSApp sendEvent:event];
    1.20 +            break;
    1.21          case NSKeyDown:
    1.22          case NSKeyUp:
    1.23          case NSFlagsChanged: