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

Get the current state of a game controller sensor.

The number of values and interpretation of the data is sensor dependent. See sensor for the details for each type of sensor.

  • gamecontroller The controller to query
  • type The type of sensor to query
  • data A pointer filled with the current sensor state
  • num_values The number of values to write to data

Returns: 0, or -1 if an error occurred.