# HG changeset patch # User Sam Lantinga # Date 1154214015 0 # Node ID 5fc6fb0fb605abfdb9d0a46cd36b51f1ab663b6a # Parent c7803e4c21d3f785f2f23ea6b62076a90954101b Added right/other drag code for Cocoa windows diff -r c7803e4c21d3 -r 5fc6fb0fb605 src/video/cocoa/SDL_cocoawindow.h --- a/src/video/cocoa/SDL_cocoawindow.h Sat Jul 29 22:42:48 2006 +0000 +++ b/src/video/cocoa/SDL_cocoawindow.h Sat Jul 29 23:00:15 2006 +0000 @@ -55,6 +55,8 @@ -(void) otherMouseUp:(NSEvent *) theEvent; -(void) mouseMoved:(NSEvent *) theEvent; -(void) mouseDragged:(NSEvent *) theEvent; +-(void) rightMouseDragged:(NSEvent *) theEvent; +-(void) otherMouseDragged:(NSEvent *) theEvent; -(void) scrollWheel:(NSEvent *) theEvent; -(void) keyDown:(NSEvent *) theEvent; -(void) keyUp:(NSEvent *) theEvent; diff -r c7803e4c21d3 -r 5fc6fb0fb605 src/video/cocoa/SDL_cocoawindow.m --- a/src/video/cocoa/SDL_cocoawindow.m Sat Jul 29 22:42:48 2006 +0000 +++ b/src/video/cocoa/SDL_cocoawindow.m Sat Jul 29 23:00:15 2006 +0000 @@ -218,6 +218,16 @@ [self mouseMoved:theEvent]; } +- (void)rightMouseDragged:(NSEvent *)theEvent +{ + [self mouseMoved:theEvent]; +} + +- (void)otherMouseDragged:(NSEvent *)theEvent +{ + [self mouseMoved:theEvent]; +} + - (void)scrollWheel:(NSEvent *)theEvent { int index;