mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 03:07:10 -05:00
Added right/other drag code for Cocoa windows
This commit is contained in:
@@ -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 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user