mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	Removed SDL_GamepadBinding from the API
The text format is more expressive and widely used than the binary structure
This commit is contained in:
		@@ -250,6 +250,8 @@ The SDL_EVENT_GAMEPAD_ADDED event now provides the joystick instance ID in the w
 | 
			
		||||
 | 
			
		||||
The functions SDL_GetGamepads(), SDL_GetGamepadInstanceName(), SDL_GetGamepadInstancePath(), SDL_GetGamepadInstancePlayerIndex(), SDL_GetGamepadInstanceGUID(), SDL_GetGamepadInstanceVendor(), SDL_GetGamepadInstanceProduct(), SDL_GetGamepadInstanceProductVersion(), and SDL_GetGamepadInstanceType() have been added to directly query the list of available gamepads.
 | 
			
		||||
 | 
			
		||||
The gamepad binding structure has been removed in favor of exchanging bindings in text format.
 | 
			
		||||
 | 
			
		||||
SDL_GameControllerGetSensorDataWithTimestamp() has been removed. If you want timestamps for the sensor data, you should use the sensor_timestamp member of SDL_EVENT_GAMEPAD_SENSOR_UPDATE events.
 | 
			
		||||
 | 
			
		||||
The following enums have been renamed:
 | 
			
		||||
@@ -318,6 +320,8 @@ The following functions have been renamed:
 | 
			
		||||
 | 
			
		||||
The following functions have been removed:
 | 
			
		||||
* SDL_GameControllerEventState() - replaced with SDL_SetGamepadEventsEnabled() and SDL_GamepadEventsEnabled()
 | 
			
		||||
* SDL_GameControllerGetBindForAxis()
 | 
			
		||||
* SDL_GameControllerGetBindForButton()
 | 
			
		||||
* SDL_GameControllerMappingForDeviceIndex() - replaced with SDL_GetGamepadInstanceMapping()
 | 
			
		||||
* SDL_GameControllerNameForIndex() - replaced with SDL_GetGamepadInstanceName()
 | 
			
		||||
* SDL_GameControllerPathForIndex() - replaced with SDL_GetGamepadInstancePath()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user