Function fermium::gamecontroller::SDL_GameControllerGetSensorDataRate[][src]

pub unsafe extern "C" fn SDL_GameControllerGetSensorDataRate(
    gamecontroller: *mut SDL_GameController,
    type_: SDL_SensorType
) -> c_float
Expand description

Get the data rate (number of events per second) of a game controller sensor.

  • gamecontroller The controller to query
  • type The type of sensor to query
  • Returns: the data rate, or 0.0f if the data rate is not available.