/* Set the player index of an opened joystick  */
void SDL_JoystickSetPlayerIndex(SDL_Joystick *joystick, int player_index)
/* Set the player index of an opened joystick  */
void SDL_JoystickSetPlayerIndex(SDL_Joystick *joystick, int player_index)
{
    if (!SDL_PrivateJoystickValid(joystick)) {
        return;
    }
    SDL_LockJoysticks();
    SDL_SetJoystickIDForPlayerIndex(player_index, joystick->instance_id);
    SDL_UnlockJoysticks();
}