Scroll to navigation

SDL_SetGamepadEventsEnabled(3) SDL3 FUNCTIONS SDL_SetGamepadEventsEnabled(3)

NAME

SDL_SetGamepadEventsEnabled - Set the state of gamepad event processing.

HEADER FILE

Defined in SDL3/SDL_gamepad.h

SYNOPSIS

#include "SDL3/SDL.h"
void SDL_SetGamepadEventsEnabled(bool enabled);

DESCRIPTION

If gamepad events are disabled, you must call

SDL_UpdateGamepads () yourself and check the state of the gamepad when you want gamepad information.

FUNCTION PARAMETERS

whether to process gamepad events or not.

AVAILABILITY

This function is available since SDL 3.1.3.

SEE ALSO

(3), SDL_GamepadEventsEnabled(3), (3), SDL_UpdateGamepads(3)

SDL 3.1.6 Simple Directmedia Layer