sdlUpdateSensors function

void sdlUpdateSensors()

Update the current state of the open sensors.

This is called automatically by the event loop if sensor events are enabled.

This needs to be called from the thread that initialized the sensor subsystem.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_UpdateSensors(void)

Implementation

void sdlUpdateSensors() {
  final sdlUpdateSensorsLookupFunction = libSdl3
      .lookupFunction<Void Function(), void Function()>('SDL_UpdateSensors');
  return sdlUpdateSensorsLookupFunction();
}