---
name: "SDL_UpdateSensors"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_UpdateSensors"
---

# SDL\_UpdateSensors(3)

Update the current state of the open sensors.

## NAME

SDL\_UpdateSensors - Update the current state of the open sensors.

## HEADER FILE

Defined in SDL3/SDL\_sensor.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_UpdateSensors(void);**

## DESCRIPTION

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.

## AVAILABILITY

This function is available since SDL 3.2.0.
