summaryrefslogtreecommitdiff
path: root/include/SDL_joystick.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2020-11-05 11:07:54 -0800
committerSam Lantinga <slouken@libsdl.org>2020-11-05 11:07:54 -0800
commit3b78eae0933993b62818c483a68fa1d8f179e822 (patch)
treed81399fa4c0c432cb0c31b2277f60606d926de36 /include/SDL_joystick.h
parente0ac6352d233b718c02ad884a7bb6960c53fb42a (diff)
downloadsdl-3b78eae0933993b62818c483a68fa1d8f179e822.tar.gz
Added SDL_JoystickHasLED
Currently, this is only supported by the PS4 HIDAPI driver.
Diffstat (limited to 'include/SDL_joystick.h')
-rw-r--r--include/SDL_joystick.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/SDL_joystick.h b/include/SDL_joystick.h
index 3ee433b76..30790fcf9 100644
--- a/include/SDL_joystick.h
+++ b/include/SDL_joystick.h
@@ -433,6 +433,15 @@ extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick * joystick,
extern DECLSPEC int SDLCALL SDL_JoystickRumble(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms);
/**
+ * Return whether a joystick has an LED
+ *
+ * \param joystick The joystick to query
+ *
+ * \return SDL_TRUE, or SDL_FALSE if this joystick does not have a modifiable LED
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_JoystickHasLED(SDL_Joystick * joystick);
+
+/**
* Update a joystick's LED color.
*
* \param joystick The joystick to update