Function SDL_SetGamepadEventsEnabled

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

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

§Parameters

  • enabled: whether to process gamepad events or not.

§Availability

This function is available since SDL 3.2.0.

§See also