SDL_JoystickInstanceID always returns NIL for SDL_JoystickID

"danbarnes333" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Hi guys,

I am having a problem with the gamepad / joystick interface in SDL2.

Because of the application I cannot use SDL events to manage the gamepads (which I realise would be more straight forward).

I want to keep track of gamepads using their SDL_JoystickID but when I try and retrieve this using SDL_JoystickInstanceID I always get nil as a response.

Here is a small snippet but hopefully enough to show the problem.

[Image: http://i.imgur.com/Dyofnh0.png ]

Am I using the interface incorrectly? 

I can get the state of gamepad buttons and all other functions fine, just not the InstanceID, any ideas would be appreciated!

Thanks,

Dan

(OSX Sierra)[/img]

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.