Explorar o código

Mac: Turn off momentum-based scrolling.

Sam Lantinga %!s(int64=12) %!d(string=hai) anos
pai
achega
e231d5b450
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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();
             CreateApplicationMenus();
         }
         }
         [NSApp finishLaunching];
         [NSApp finishLaunching];
+        NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"];
+        [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
+
     }
     }
     if (NSApp && ![NSApp delegate]) {
     if (NSApp && ![NSApp delegate]) {
         [NSApp setDelegate:[[SDLAppDelegate alloc] init]];
         [NSApp setDelegate:[[SDLAppDelegate alloc] init]];