Scroll to navigation

SDL_JoystickHasLED(3) SDL3 FUNCTIONS SDL_JoystickHasLED(3)

NAME

SDL_JoystickHasLED - Query whether a joystick has an LED.

SYNOPSIS

#include "SDL3/SDL.h"
SDL_bool SDL_JoystickHasLED(SDL_Joystick *joystick);

DESCRIPTION

An example of a joystick LED is the light on the back of a PlayStation 4's DualShock 4 controller.

FUNCTION PARAMETERS

The joystick to query

RETURN VALUE

Returns SDL_TRUE
if the joystick has a modifiable LED,

SDL_FALSE
otherwise.

AVAILABILITY

This function is available since SDL 3.0.0.

SDL 3.0.0 SDL