eventsEnabled static method

bool eventsEnabled()

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

static bool eventsEnabled() {
  return sdlGamepadEventsEnabled();
}