Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_SetJoystickEventsEnabled - Set the state of joystick event processing.

Availability

       This function is available since SDL 3.2.0.

Description

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

Function Parameters

enabled
              whether to process joystick events or not.

Name

       SDL_SetJoystickEventsEnabled - Set the state of joystick event processing.

See Also

SDL_JoystickEventsEnabled(3), SDL_UpdateJoysticks(3)

Simple Directmedia Layer                           SDL 3.2.20                    SDL_SetJoystickEventsEnabled(3)

Synopsis

#include<SDL3/SDL_joystick.h>voidSDL_SetJoystickEventsEnabled(boolenabled);

See Also