Function SDL_SetJoystickEventsEnabled

pub unsafe extern "C" fn SDL_SetJoystickEventsEnabled(enabled: bool)
Available on crate feature dep_sdl3 only.
Expand description

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.

§Parameters

  • enabled: whether to process joystick events or not.

§Availability

This function is available since SDL 3.2.0.

§See also