sdlSensorUpdate function

void sdlSensorUpdate()

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

extern DECLSPEC void SDLCALL SDL_SensorUpdate(void)

Implementation

void sdlSensorUpdate() {
  final sdlSensorUpdateLookupFunction = libSdl2
      .lookupFunction<Void Function(), void Function()>('SDL_SensorUpdate');
  return sdlSensorUpdateLookupFunction();
}