SDL_SetJoystickPlayerIndex3
Set the player index of an opened joystick.
Usage
#include "SDL3/SDL.h"
bool SDL_SetJoystickPlayerIndex(SDL_Joystick *joystick, int player_index);
Header file
Defined in SDL3/SDL_joystick.h
Function parameters
- joystick
-
the
SDL_Joystick
obtained fromSDL_OpenJoystick().
- player_index
-
player index to assign to this joystick, or -1 to clear the player index and turn off player LEDs.
Return value
Returns true on success or false on failure; call
SDL_GetError () for more information.