Windows Joystick names

When asking for names with SDL_JoyStickName on Windows ME (atleast) on
my 2 usb joysticks (none of them from Microsoft, a wheel from saitek
and a joypad from Gravis) I got something like (I don’t remember the
exact phrase) “Microsoft Windows Joystick” on both of them.

Am I doing something wrong?
Is this something fixable?

I can’t really ask the user to select a joystick between 2 identical incorrect
names…

/Dan

Hi Dan,

I’ve not looked at this src in detail, but sounds like a default: catch
all. Do you know of a way of distinbushing them individually so a
better string could be returned?

Cheers

JG

on the 26/03/03 14:08, Dan Gudmundsson wrote:> When asking for names with SDL_JoyStickName on Windows ME (atleast) on

my 2 usb joysticks (none of them from Microsoft, a wheel from saitek
and a joypad from Gravis) I got something like (I don’t remember the
exact phrase) “Microsoft Windows Joystick” on both of them.

Am I doing something wrong?
Is this something fixable?

I can’t really ask the user to select a joystick between 2 identical incorrect
names…

/Dan


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

J. Grant writes:

Hi Dan,

I’ve not looked at this src in detail, but sounds like a default: catch
all.

Me neither, but I did a quick search in the sdl-cvs via www, and I couldn’t
find anything, maybe the default name comes from microsoft code…

Is it just me that have problems with SDL_JoyStickName??

Do you know of a way of distinbushing them individually so a
better string could be returned?

If you mean how to use the win-api, I don’t,
I don’t know anything about windows programming :frowning: I don’t even have
a working c-compiler (in windows)… (I program in erlang :-))

I also attached a third joystick through the game-port and noticed
the hard way that only two joysticks are supported in the current code.

I did a little google on the this list and found the recent discussion
on direct input joysticks.
Did anything happen to the “direct input joystick project”??
That might solve my problems…

I have hardware but not the software (nor knowledge), so I could
help to test (win ME) if anyone could send me alpha/beta-SDL.DLL’s.

How much have changed from DX.5 to DX.8 in the joystick api?
SDL requires DX.5 right? hmm or was it DX.3?

Is it at all possible to change it and still be backward compatible?

Cheers
/Dan> Cheers

JG

on the 26/03/03 14:08, Dan Gudmundsson wrote:

When asking for names with SDL_JoyStickName on Windows ME (atleast) on
my 2 usb joysticks (none of them from Microsoft, a wheel from saitek
and a joypad from Gravis) I got something like (I don’t remember the
exact phrase) “Microsoft Windows Joystick” on both of them.

Am I doing something wrong?
Is this something fixable?

I can’t really ask the user to select a joystick between 2 identical incorrect
names…

/Dan

I’ve written one from scratch, avoiding DX8. So far, it seems to work
well, though it needs some cleaning–it duplicates some code from the
video driver, since the two modules are separate, and I’m not sure how
to merge them. I’ll probably post it soon anyway.On Thu, Mar 27, 2003 at 10:28:46AM +0100, Dan Gudmundsson wrote:

I did a little google on the this list and found the recent discussion
on direct input joysticks.
Did anything happen to the “direct input joystick project”??
That might solve my problems…


Glenn Maynard

I’ve written one from scratch, avoiding DX8. So far, it seems to work
well, though it needs some cleaning–it duplicates some code from the
video driver, since the two modules are separate, and I’m not sure how
to merge them. I’ll probably post it soon anyway.

That would be great, especially with cleaned up followup.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment