SDL_JoystickIndex(3)

Get the index of an SDL_Joystick.

Section 3 libsdl1.2-dev bookworm source

Description

SDL_JoystickIndex

NAME

SDL_JoystickIndex - Get the index of an SDL_Joystick.

SYNOPSIS

#include "SDL.h"

int SDL_JoystickIndex(SDL_Joystick *joystick);

DESCRIPTION

Returns the index of a given SDL_Joystick structure.

RETURN VALUE

Index number of the joystick.

SEE ALSO

SDL_JoystickOpen