src/video/cocoa/SDL_cocoawindow.m
changeset 4925 514f811a4887
parent 4915 834ce48a19c2
child 4927 d716dff4b13e
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Wed Dec 01 12:22:29 2010 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Dec 01 12:23:16 2010 -0800
     1.3 @@ -61,7 +61,9 @@
     1.4      [center addObserver:self selector:@selector(windowDidUnhide:) name:NSApplicationDidUnhideNotification object:NSApp];
     1.5  
     1.6      [_data->nswindow setAcceptsMouseMovedEvents:YES];
     1.7 +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
     1.8      [[_data->nswindow contentView] setAcceptsTouchEvents:YES];
     1.9 +#endif
    1.10  }
    1.11  
    1.12  - (void)close
    1.13 @@ -293,6 +295,7 @@
    1.14  
    1.15  - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
    1.16  {
    1.17 +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
    1.18      NSSet *touches = 0;
    1.19      NSEnumerator *enumerator;
    1.20      NSTouch *touch;
    1.21 @@ -354,6 +357,7 @@
    1.22          
    1.23          touch = (NSTouch*)[enumerator nextObject];
    1.24      }
    1.25 +#endif /* MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 */
    1.26  }
    1.27  
    1.28  @end