DOKK / manpages / debian 13 / libsdl3-doc / SDL_SetGamepadEventsEnabled.3.en
SDL_SetGamepadEventsEnabled(3) SDL3 FUNCTIONS SDL_SetGamepadEventsEnabled(3)

SDL_SetGamepadEventsEnabled - Set the state of gamepad event processing.

Defined in SDL3/SDL_gamepad.h

#include "SDL3/SDL.h"
void SDL_SetGamepadEventsEnabled(bool enabled);

If gamepad events are disabled, you must call

SDL_UpdateGamepads () yourself and check the state of the gamepad when you want gamepad information.

whether to process gamepad events or not.

This function is available since SDL 3.2.0.

(3), SDL_GamepadEventsEnabled(3), (3), SDL_UpdateGamepads(3)

SDL 3.2.10 Simple Directmedia Layer