Added right/other drag code for Cocoa windows
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Jul 2006 23:00:15 +0000
changeset 1958 5fc6fb0fb605
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
--- 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;