I have noticed that under Windows, ‘SDL_JoystickName’ always returns
"Microsoft PC Joystick Driver" or something similar. Moreover, it
returns the same string even when there are multiple joysticks, which
makes the string useless for uniquely identifying a particular
joystick.
Looking a bit deeper, I found that this string comes directly from
Windows through ‘joyGetDevCaps’. In other, words, Windows is at
fault, not SDL.
However, it seems somewhat strange that SDL uses the multimedia API
instead of DirectInput for joystick input. The former is limited to a
maximum of 2 joysticks, and DirectInput is appearently better able to
assign meaningful names to joysticks. Is there any particular reason
for this?–
Rainer Deyke | root at rainerdeyke.com | http://rainerdeyke.com