SDL_OpenJoystick

Open a joystick for use.

The joystick subsystem must be initialized before a joystick can be opened for use.

extern (C) nothrow @nogc extern
SDL_OpenJoystick

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

Return Value

a joystick identifier or NULL on failure; call SDL_GetError() for more information.

See Also

Meta