sdl2/generated/lib_sdl_sensor library
Functions
-
sdlLockSensors(
) → void - Locking for multi-threaded access to the sensor API
-
sdlNumSensors(
) → int - Count the number of sensors attached to the system right now.
-
sdlSensorClose(
Pointer< SdlSensor> sensor) → void - Close a sensor previously opened with SDL_SensorOpen().
-
sdlSensorFromInstanceId(
int instanceId) → Pointer< SdlSensor> - Return the SDL_Sensor associated with an instance id.
-
sdlSensorGetData(
Pointer< SdlSensor> sensor, Pointer<Float> data, int numValues) → int - Get the current state of an opened sensor.
-
sdlSensorGetDataWithTimestamp(
Pointer< SdlSensor> sensor, Pointer<Uint64> timestamp, Pointer<Float> data, int numValues) → int - Get the current state of an opened sensor with the timestamp of the last update.
-
sdlSensorGetDeviceInstanceId(
int deviceIndex) → int - Get the instance ID of a sensor.
-
sdlSensorGetDeviceName(
int deviceIndex) → String? - Get the implementation dependent name of a sensor.
-
sdlSensorGetDeviceNonPortableType(
int deviceIndex) → int - Get the platform dependent type of a sensor.
-
sdlSensorGetDeviceType(
int deviceIndex) → int - Get the type of a sensor.
-
sdlSensorGetInstanceId(
Pointer< SdlSensor> sensor) → int - Get the instance ID of a sensor.
-
sdlSensorGetName(
Pointer< SdlSensor> sensor) → String? - Get the implementation dependent name of a sensor
-
sdlSensorGetNonPortableType(
Pointer< SdlSensor> sensor) → int - Get the platform dependent type of a sensor.
-
sdlSensorGetType(
Pointer< SdlSensor> sensor) → int - Get the type of a sensor.
-
sdlSensorOpen(
int deviceIndex) → Pointer< SdlSensor> - Open a sensor for use.
-
sdlSensorUpdate(
) → void - Update the current state of the open sensors.
-
sdlUnlockSensors(
) → void -
extern DECLSPEC void SDLCALL SDL_UnlockSensors(void)