SDL_GetGamepadSensorData

Get the current state of a gamepad 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.

extern (C) nothrow @nogc extern
bool
SDL_GetGamepadSensorData

Parameters

gamepad SDL_Gamepad*

the gamepad to query.

type SDL_SensorType

the type of sensor to query.

data float*

a pointer filled with the current sensor state.

num_values int

the number of values to write to data.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Meta