Sfoglia il codice sorgente

Mac: Turn off momentum-based scrolling.

Sam Lantinga 12 anni fa
parent
commit
e231d5b450
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/video/cocoa/SDL_cocoaevents.m

+ 3 - 0
src/video/cocoa/SDL_cocoaevents.m

@@ -231,6 +231,9 @@ Cocoa_RegisterApp(void)
             CreateApplicationMenus();
         }
         [NSApp finishLaunching];
+        NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"];
+        [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
+
     }
     if (NSApp && ![NSApp delegate]) {
         [NSApp setDelegate:[[SDLAppDelegate alloc] init]];