Document passing -1 to clear the player index for a controller

This commit is contained in:
Sam Lantinga committed 2022-08-09 08:47:49 -07:00
1 parent 8695d982d2
commit aad2df7f0d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -455,7 +455,7 @@ extern DECLSPEC int SDLCALL SDL_GameControllerGetPlayerIndex(SDL_GameController
* Set the player index of an opened game controller.
*
* \param gamecontroller the game controller object to adjust.
* \param player_index Player index to assign to this controller.
* \param player_index Player index to assign to this controller, or -1 to clear the player index and turn off player LEDs.
*
* \since This function is available since SDL 2.0.12.
*/