sdlGamepadEventsEnabled function
Query the state of gamepad event processing.
If gamepad events are disabled, you must call SDL_UpdateGamepads() yourself and check the state of the gamepad when you want gamepad information.
\returns true if gamepad events are being processed, false otherwise.
\since This function is available since SDL 3.1.3.
\sa SDL_SetGamepadEventsEnabled
extern SDL_DECLSPEC bool SDLCALL SDL_GamepadEventsEnabled(void)
Implementation
bool sdlGamepadEventsEnabled() {
final sdlGamepadEventsEnabledLookupFunction =
libSdl3.lookupFunction<Uint8 Function(), int Function()>(
'SDL_GamepadEventsEnabled');
return sdlGamepadEventsEnabledLookupFunction() == 1;
}