Re: [Plib-devel] Re: WIN32 USB joystick name problem - possible fix [was: Joystick documentation pro
Brought to you by:
sjbaker
|
From: Frederic B. <fr...@wa...> - 2002-09-08 14:59:44
|
From: "Sebastian Ude" <ud...@ha...> > > > 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. It is probably better that the names returned by Linux are different from those returned by Windows as I discovered that the axes layout differ for the same joystick whether it is used under Linux or Windows. Cheers, -Fred |