Function SDL_SetGamepadSensorEnabled
pub unsafe extern "C" fn SDL_SetGamepadSensorEnabled(
gamepad: *mut SDL_Gamepad,
type: SDL_SensorType,
enabled: bool,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Set whether data reporting for a gamepad sensor is enabled.
§Parameters
gamepad
: the gamepad to update.type
: the type of sensor to enable/disable.enabled
: whether data reporting should be enabled.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Availability
This function is available since SDL 3.2.0.