pub unsafe extern "C" fn SDL_GameControllerGetSensorData(
    gamecontroller: *mut SDL_GameController,
    type_: SDL_SensorType,
    data: *mut f32,
    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 SDL_sensor.h for the details for each type of sensor.

\param gamecontroller The controller to query \param type The type of sensor to query \param data A pointer filled with the current sensor state \param num_values The number of values to write to data \return 0 or -1 if an error occurred.

\since This function is available since SDL 2.0.14.