Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added right/other drag code for Cocoa windows

  • Loading branch information
slouken committed Jul 29, 2006
1 parent 04ad26b commit 7dd17d82180d1bd18f544668d31233cfda2f22e9
Showing with 12 additions and 0 deletions.
  1. +2 −0 src/video/cocoa/SDL_cocoawindow.h
  2. +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;

0 comments on commit 7dd17d8

Please sign in to comment.