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 12:39:27
|
On Sun, 08 Sep 2002, jul...@bt... (Julian Foad) wrote: > Date: Sun, 08 Sep 2002 11:41:38 +0100 > To: pli...@li... > From: jul...@bt... (Julian Foad) > Reply-To: pli...@li... > Subject: Re: [Plib-devel] Re: WIN32 USB joystick name problem - possible > fix [was: Joystick documentation problem] [...] > Yes, we'll do that. What I meant was that, if possible, we should try > to find a method that returns the same name under Windows that it does > under Linux. 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. So unsurprisingly, the hard-coded device names in the Windows drivers *slightly* differ from the strings in the Linux drivers for some joysticks. The only way to work around that problem which I see is to write down *all* names a particular joystick appears under with different operating systems. It *may* be that with USB joysticks the name is directly read from the hardware, though, but I am not sure about that. - Sebastian |