SDL_GetSensorData

Get the current state of an opened sensor.

The number of values and interpretation of the data is sensor dependent.

extern (C) nothrow @nogc extern
bool
SDL_GetSensorData

Parameters

sensor SDL_Sensor*

the SDL_Sensor object 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