mirror of
https://github.com/yawut/SDL.git
synced 2026-07-30 15:09:20 -05:00
Added right/other drag code for Cocoa windows
This commit is contained in:
parent
9617df5b60
commit
b8c0a0e2ba
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user