… = Joysticks[…] (gb.sdl)

Dim hJoystick As .Joystick
hJoystick = Joysticks [ Index As Integer ]

Returns a Joystick item from its index.