sdlCloseSensor function

void sdlCloseSensor(
  1. Pointer<SdlSensor> sensor
)

Close a sensor previously opened with SDL_OpenSensor().

\param sensor the SDL_Sensor object to close.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_CloseSensor(SDL_Sensor *sensor)

Implementation

void sdlCloseSensor(Pointer<SdlSensor> sensor) {
  final sdlCloseSensorLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlSensor> sensor),
      void Function(Pointer<SdlSensor> sensor)>('SDL_CloseSensor');
  return sdlCloseSensorLookupFunction(sensor);
}