SDL_SetGamepadEventsEnabled - Man Page
Set the state of gamepad event processing.
Synopsis
#include <SDL3/SDL_gamepad.h> void SDL_SetGamepadEventsEnabled(bool enabled);
Description
If gamepad events are disabled, you must call SDL_UpdateGamepads() yourself and check the state of the gamepad when you want gamepad information.
Function Parameters
- enabled
whether to process gamepad events or not.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS