Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added right/other drag code for Cocoa windows
- Loading branch information
Showing
with
12 additions
and
0 deletions.
-
+2
−0
src/video/cocoa/SDL_cocoawindow.h
-
+10
−0
src/video/cocoa/SDL_cocoawindow.m
|
@@ -55,6 +55,8 @@ typedef struct SDL_WindowData SDL_WindowData; |
|
|
-(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; |
|
|
|
@@ -218,6 +218,16 @@ - (void)mouseDragged:(NSEvent *)theEvent |
|
|
[self mouseMoved:theEvent]; |
|
|
} |
|
|
|
|
|
- (void)rightMouseDragged:(NSEvent *)theEvent |
|
|
{ |
|
|
[self mouseMoved:theEvent]; |
|
|
} |
|
|
|
|
|
- (void)otherMouseDragged:(NSEvent *)theEvent |
|
|
{ |
|
|
[self mouseMoved:theEvent]; |
|
|
} |
|
|
|
|
|
- (void)scrollWheel:(NSEvent *)theEvent |
|
|
{ |
|
|
int index; |
|
|