pub unsafe extern "C" fn SDL_GetGamepadSensorDataRate(
gamepad: *mut SDL_Gamepad,
type: SDL_SensorType,
) -> c_floatExpand description
Get the data rate (number of events per second) of a gamepad sensor.
§Parameters
gamepad: the gamepad to query.type: the type of sensor to query.
§Return value
Returns the data rate, or 0.0f if the data rate is not available.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.