Tao.Sdl SDK Documentation

Sdl.SDL_JoystickName Method 

Get joystick name.

[Visual Basic]
Public Shared Function SDL_JoystickName( _
   ByVal device_index As Integer _
) As String
[C#]
public static string SDL_JoystickName(
   int device_index
);

Parameters

device_index

Return Value

Returns a string containing the joystick name.

Remarks

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

Binds to C-function in SDL_joystick.h

const char *SDL_JoystickName(int index)
            

Example

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

See Also

Sdl Class | Tao.Sdl Namespace | SDL_JoystickOpen