SDL_JoystickName

Name

SDL_JoystickName -- Get joystick name.

Synopsis

uses
SDL;

function SDL_JoystickName( index : Integer) : PChar;

Description

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

Return Value

Returns a char pointer to the joystick name.

Examples

// Print the names of all attached joysticks 
num_joy, i : integer;
.
.
.
num_joy := SDL_NumJoysticks;
WriteLn( Format( '%d joysticks found', [ num_joy ] ) );
for i := 0 to num_joy - 1 do
WriteLn( Format( '%s\n', [ SDL_JoystickName( i ) ] ) );

See Also

SDL_JoystickOpen