1SDL_JoystickName(3)            SDL API Reference           SDL_JoystickName(3)
2
3
4

NAME

6       SDL_JoystickName - Get joystick name.
7

SYNOPSIS

9       #include "SDL.h"
10
11       const char *SDL_JoystickName(int index);
12

DESCRIPTION

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

RETURN VALUE

18       Returns a char pointer to the joystick name.
19

EXAMPLES

21       /* Print the names of all attached joysticks */
22       int num_joy, i;
23       num_joy=SDL_NumJoysticks();
24       printf("%d joysticks found
25       ", num_joy);
26       for(i=0;i<num_joy;i++)
27         printf("%s
28       ", SDL_JoystickName(i));
29

SEE ALSO

31       SDL_JoystickOpen
32
33
34
35SDL                         Tue 11 Sep 2001, 23:00         SDL_JoystickName(3)
Impressum