Added right/other drag code for Cocoa windows

This commit is contained in:
Sam Lantinga 2006-07-29 23:00:15 +00:00
parent 9617df5b60
commit b8c0a0e2ba
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -218,6 +218,16 @@ static __inline__ void ConvertNSRect(NSRect *r)
[self mouseMoved:theEvent];
}
- (void)rightMouseDragged:(NSEvent *)theEvent
{
[self mouseMoved:theEvent];
}
- (void)otherMouseDragged:(NSEvent *)theEvent
{
[self mouseMoved:theEvent];
}
- (void)scrollWheel:(NSEvent *)theEvent
{
int index;