Function sdl2_sys::SDL_SensorUpdate

source ·
pub unsafe extern "C" fn SDL_SensorUpdate()
Expand description

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.