Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added right/other drag code for Cocoa windows
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 29, 2006
1 parent 04ad26b commit 7dd17d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.h
Expand Up @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -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;
Expand Down

0 comments on commit 7dd17d8

Please sign in to comment.