The SDL forums have moved to
This is just a read-only archive of the previous forums, to keep old links working.

SDL Forum Index
Simple Directmedia Layer Forums
Joystick Identification

Joined: 23 Apr 2011
Posts: 113
Location: Brazil
I am sure that some time ago someone asked something similar, but I cant find.

I want to create a simple database of joysticks and its features, buttons, if it is haptic, etc.

The NAME parameter seems to be the primary key.... but does not look reliable.
For example, some generica gamepads only identify itself as "USB Gamepad".
On Mac OS X, the Xbox 360 wired controller identify itself only as "Controller".

Is it possible to get the vendor ID or a unique device ID or something?
It will be very important to differentiate each gamepad.

Thanks a lot
Rodrigo Rocha