(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)

SDL_HINT_AUTO_UPDATE_SENSORS

A variable controlling whether SDL updates sensor state when getting input events

Header File

Defined in SDL_hints.h

Syntax

#define SDL_HINT_AUTO_UPDATE_SENSORS    "SDL_AUTO_UPDATE_SENSORS"

Remarks

This variable can be set to the following values:

This hint can be toggled on and off at runtime.


CategoryAPI, CategoryAPIMacro, CategoryHints