sdlSetJoystickEventsEnabled function

void sdlSetJoystickEventsEnabled(
  1. bool enabled
)

Set 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.

\param enabled whether to process joystick events or not.

\since This function is available since SDL 3.1.3.

\sa SDL_JoystickEventsEnabled \sa SDL_UpdateJoysticks

extern SDL_DECLSPEC void SDLCALL SDL_SetJoystickEventsEnabled(bool enabled)

Implementation

void sdlSetJoystickEventsEnabled(bool enabled) {
  final sdlSetJoystickEventsEnabledLookupFunction = libSdl3.lookupFunction<
      Void Function(Uint8 enabled),
      void Function(int enabled)>('SDL_SetJoystickEventsEnabled');
  return sdlSetJoystickEventsEnabledLookupFunction(enabled ? 1 : 0);
}