src/video/cocoa/SDL_cocoawindow.h
changeset 4673 c17ac64abb70
parent 3697 f7b03b6838cb
child 4925 514f811a4887
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.h	Tue Jul 27 18:14:09 2010 +0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.h	Wed Jul 28 23:32:13 2010 -0700
     1.3 @@ -64,6 +64,20 @@
     1.4  -(void) rightMouseDragged:(NSEvent *) theEvent;
     1.5  -(void) otherMouseDragged:(NSEvent *) theEvent;
     1.6  -(void) scrollWheel:(NSEvent *) theEvent;
     1.7 +-(void) touchesBeganWithEvent:(NSEvent *) theEvent;
     1.8 +-(void) touchesMovedWithEvent:(NSEvent *) theEvent;
     1.9 +-(void) touchesEndedWithEvent:(NSEvent *) theEvent;
    1.10 +-(void) touchesCancelledWithEvent:(NSEvent *) theEvent;
    1.11 +
    1.12 +/* Touch event handling */
    1.13 +typedef enum {
    1.14 +    COCOA_TOUCH_DOWN,
    1.15 +    COCOA_TOUCH_UP,
    1.16 +    COCOA_TOUCH_MOVE,
    1.17 +    COCOA_TOUCH_CANCELLED
    1.18 +} cocoaTouchType;
    1.19 +-(void) handleTouches:(cocoaTouchType)type withEvent:(NSEvent*) event;
    1.20 +
    1.21  @end
    1.22  /* *INDENT-ON* */
    1.23