macOS: Add hint for smooth SDL_EVENT_MOUSE_WHEEL values

This commit is contained in:
Jan Sedivy authored and Sam Lantinga committed 2024-10-06 12:36:42 -07:00
1 parent 2fa8acb084
commit c2b98e21ba
2 files changed
+18 -1

No files matched your search

+3 -1
View File
@@ -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];