Re: [Plib-devel] Re: WIN32 USB joystick name problem - possible fix [was: Joystick documentation pro
Brought to you by:
sjbaker
|
From: Sebastian U. <ud...@ha...> - 2002-09-08 13:49:25
|
On Sun, 8 Sep 2002, da...@me... (David Megginson) wrote: > Date: Sun, 8 Sep 2002 09:25:02 -0400 > To: pli...@li... > From: da...@me... (David Megginson) > Reply-To: pli...@li... > Subject: Re: [Plib-devel] Re: WIN32 USB joystick name problem - possible > fix [was: Joystick documentation problem] > > Sebastian Ude writes: > > > That's difficult to impossible. I just checked the Linux joystick > > driver sources, and the joystick names are *not* read from the > > hardware in some way, but are hard-coded into the drivers. My > > assumption is that the same applies for the Windows drivers, too. > > You were probably looking at the old game-port drivers. I am referring to the drivers that come with Kernel 2.4.19 in linux/drivers/char/joystick. > > It *may* be that with USB joysticks the name is directly read from the > > hardware, though, but I am not sure about that. > > They are, so I would expect Windows to get the same name as Linux. I > never intended for the patch to be reliable with pre-USB devices -- it > just wouldn't work. Err ... who says that the name that is going to be returned by the JSIOCGNAME ioctl () on Linux is actually the name read from the USB hardware ? Don't you also load - besides the USB, USB-HID, input and joydev modules - a particular driver from drivers/char/joystick for an USB joystick ? If yes, then you'll just get the hard-coded string from the driver source - at least with the drivers from LK 2.4.19. - Sebastian |