Added right/other drag code for Cocoa windows
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Jul 2006 23:00:15 +0000
changeset 19585fc6fb0fb605
parent 1957 c7803e4c21d3
child 1959 25d6537feea4
Added right/other drag code for Cocoa windows
src/video/cocoa/SDL_cocoawindow.h
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.h	Sat Jul 29 22:42:48 2006 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.h	Sat Jul 29 23:00:15 2006 +0000
     1.3 @@ -55,6 +55,8 @@
     1.4  -(void) otherMouseUp:(NSEvent *) theEvent;
     1.5  -(void) mouseMoved:(NSEvent *) theEvent;
     1.6  -(void) mouseDragged:(NSEvent *) theEvent;
     1.7 +-(void) rightMouseDragged:(NSEvent *) theEvent;
     1.8 +-(void) otherMouseDragged:(NSEvent *) theEvent;
     1.9  -(void) scrollWheel:(NSEvent *) theEvent;
    1.10  -(void) keyDown:(NSEvent *) theEvent;
    1.11  -(void) keyUp:(NSEvent *) theEvent;
     2.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sat Jul 29 22:42:48 2006 +0000
     2.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sat Jul 29 23:00:15 2006 +0000
     2.3 @@ -218,6 +218,16 @@
     2.4      [self mouseMoved:theEvent];
     2.5  }
     2.6  
     2.7 +- (void)rightMouseDragged:(NSEvent *)theEvent
     2.8 +{
     2.9 +    [self mouseMoved:theEvent];
    2.10 +}
    2.11 +
    2.12 +- (void)otherMouseDragged:(NSEvent *)theEvent
    2.13 +{
    2.14 +    [self mouseMoved:theEvent];
    2.15 +}
    2.16 +
    2.17  - (void)scrollWheel:(NSEvent *)theEvent
    2.18  {
    2.19      int index;