logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_JoystickName - Get joystick name.

Description

       Get the implementation dependent name of joystick. The index parameter refers to the N'th joystick on the
       system.

Examples

       /* Print the names of all attached joysticks */
       int num_joy, i;
       num_joy=SDL_NumJoysticks();
       printf("%d joysticks found
       ", num_joy);
       for(i=0;i<num_joy;i++)
         printf("%s
       ", SDL_JoystickName(i));

Name

       SDL_JoystickName - Get joystick name.

Return Value

       Returns a char pointer to the joystick name.

See Also

SDL_JoystickOpen

SDL                                          Tue 11 Sep 2001, 23:00                          SDL_JoystickName(3)

Synopsis

#include"SDL.h"constchar*SDL_JoystickName(intindex);

See Also