Mercurial > sdl-ios-xcode
changeset 1958:5fc6fb0fb605
Added right/other drag code for Cocoa windows
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Jul 2006 23:00:15 +0000 |
parents | c7803e4c21d3 |
children | 25d6537feea4 |
files | src/video/cocoa/SDL_cocoawindow.h src/video/cocoa/SDL_cocoawindow.m |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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;