sdlGetSensors function

Pointer<Uint32> sdlGetSensors(
  1. Pointer<Int32> count
)

Get a list of currently connected sensors.

\param count a pointer filled in with the number of sensors returned, may be NULL. \returns a 0 terminated array of sensor instance IDs or NULL on failure; call SDL_GetError() for more information. This should be freed with SDL_free() when it is no longer needed.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC SDL_SensorID * SDLCALL SDL_GetSensors(int *count)

Implementation

Pointer<Uint32> sdlGetSensors(Pointer<Int32> count) {
  final sdlGetSensorsLookupFunction = libSdl3.lookupFunction<
      Pointer<Uint32> Function(Pointer<Int32> count),
      Pointer<Uint32> Function(Pointer<Int32> count)>('SDL_GetSensors');
  return sdlGetSensorsLookupFunction(count);
}