sdlJoystickEventsEnabled function

bool sdlJoystickEventsEnabled()

Query the state of joystick event processing.

If joystick events are disabled, you must call SDL_UpdateJoysticks() yourself and check the state of the joystick when you want joystick information.

\returns true if joystick events are being processed, false otherwise.

\since This function is available since SDL 3.1.3.

\sa SDL_SetJoystickEventsEnabled

extern SDL_DECLSPEC bool SDLCALL SDL_JoystickEventsEnabled(void)

Implementation

bool sdlJoystickEventsEnabled() {
  final sdlJoystickEventsEnabledLookupFunction =
      libSdl3.lookupFunction<Uint8 Function(), int Function()>(
          'SDL_JoystickEventsEnabled');
  return sdlJoystickEventsEnabledLookupFunction() == 1;
}