mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 13:56:00 +00:00
macOS: Add hint for smooth SDL_EVENT_MOUSE_WHEEL values
This commit is contained in:
@@ -106,8 +106,10 @@ static void Cocoa_DispatchEvent(NSEvent *theEvent)
|
||||
|
||||
+ (void)registerUserDefaults
|
||||
{
|
||||
BOOL momentumScrollSupported = (BOOL)SDL_GetHintBoolean(SDL_HINT_MAC_SCROLL_MOMENTUM, false);
|
||||
|
||||
NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||
[NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
|
||||
[NSNumber numberWithBool:momentumScrollSupported], @"AppleMomentumScrollSupported",
|
||||
[NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
|
||||
[NSNumber numberWithBool:YES], @"ApplePersistenceIgnoreState",
|
||||
nil];
|
||||
|
Reference in New Issue
Block a user