SDL_SetGamepadEventsEnabled3
Set the state of gamepad event processing.
Usage
#include "SDL3/SDL.h"
void SDL_SetGamepadEventsEnabled(bool enabled);
Header file
Defined in SDL3/SDL_gamepad.h
Overview
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.