sdlGetSensors function sensor

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.2.0.

extern SDL_DECLSPEC SDL_SensorID * SDLCALL SDL_GetSensors(int *count)

Implementation

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