comparison src/video/cocoa/SDL_cocoawindow.h @ 4673:c17ac64abb70

Fixed the code so we receive Cocoa touch events
author Sam Lantinga <slouken@libsdl.org>
date Wed, 28 Jul 2010 23:32:13 -0700
parents f7b03b6838cb
children 514f811a4887
comparison
equal deleted inserted replaced
4672:013b0ea263dd 4673:c17ac64abb70
62 -(void) mouseMoved:(NSEvent *) theEvent; 62 -(void) mouseMoved:(NSEvent *) theEvent;
63 -(void) mouseDragged:(NSEvent *) theEvent; 63 -(void) mouseDragged:(NSEvent *) theEvent;
64 -(void) rightMouseDragged:(NSEvent *) theEvent; 64 -(void) rightMouseDragged:(NSEvent *) theEvent;
65 -(void) otherMouseDragged:(NSEvent *) theEvent; 65 -(void) otherMouseDragged:(NSEvent *) theEvent;
66 -(void) scrollWheel:(NSEvent *) theEvent; 66 -(void) scrollWheel:(NSEvent *) theEvent;
67 -(void) touchesBeganWithEvent:(NSEvent *) theEvent;
68 -(void) touchesMovedWithEvent:(NSEvent *) theEvent;
69 -(void) touchesEndedWithEvent:(NSEvent *) theEvent;
70 -(void) touchesCancelledWithEvent:(NSEvent *) theEvent;
71
72 /* Touch event handling */
73 typedef enum {
74 COCOA_TOUCH_DOWN,
75 COCOA_TOUCH_UP,
76 COCOA_TOUCH_MOVE,
77 COCOA_TOUCH_CANCELLED
78 } cocoaTouchType;
79 -(void) handleTouches:(cocoaTouchType)type withEvent:(NSEvent*) event;
80
67 @end 81 @end
68 /* *INDENT-ON* */ 82 /* *INDENT-ON* */
69 83
70 struct SDL_WindowData 84 struct SDL_WindowData
71 { 85 {