SDL_SetGamepadEventsEnabled - Set the state of gamepad event processing.
Contents
Availability
This function is available since SDL 3.2.0.
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.
Name
SDL_SetGamepadEventsEnabled - Set the state of gamepad event processing.
See Also
SDL_GamepadEventsEnabled(3), SDL_UpdateGamepads(3) Simple Directmedia Layer SDL 3.2.20 SDL_SetGamepadEventsEnabled(3)
Synopsis
#include<SDL3/SDL_gamepad.h>voidSDL_SetGamepadEventsEnabled(boolenabled);
