mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-03 17:24:34 +00:00 
			
		
		
		
	macOS: Add hint for smooth SDL_EVENT_MOUSE_WHEEL values
This commit is contained in:
		@@ -2288,6 +2288,21 @@ extern "C" {
 | 
			
		||||
 */
 | 
			
		||||
#define SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH "SDL_MAC_OPENGL_ASYNC_DISPATCH"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * A variable controlling whether SDL_EVENT_MOUSE_WHEEL event values will have
 | 
			
		||||
 * momentum on macOS.
 | 
			
		||||
 *
 | 
			
		||||
 * The variable can be set to the following values:
 | 
			
		||||
 *
 | 
			
		||||
 * - "0": The mouse wheel events will have no momentum. (default)
 | 
			
		||||
 * - "1": The mouse wheel events will have momentum.
 | 
			
		||||
 *
 | 
			
		||||
 * This hint should be set before applicationDidFinishLaunching() is called.
 | 
			
		||||
 *
 | 
			
		||||
 * \since This hint is available since SDL 3.0.0.
 | 
			
		||||
 */
 | 
			
		||||
#define SDL_HINT_MAC_SCROLL_MOMENTUM "SDL_HINT_MAC_SCROLL_MOMENTUM"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Request SDL_AppIterate() be called at a specific rate.
 | 
			
		||||
 *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user