Re: [Plib-devel] Re: WIN32 USB joystick name problem - possible fix [was: Joystick documentation pr
Brought to you by:
sjbaker
|
From: Julian F. <jul...@bt...> - 2002-09-08 10:35:32
|
Sebastian Ude wrote: > > Well, it is the job of you flightgear guys to find out which joysticks show > up under which names under different operating systems and to adjust your > database accordingly. > > As you said, getting *something* is still better than the default driver > name. 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. > I checked a slightly modified version of the stuff into CVS. OK, that looks good and I just checked that it still works. > That brings up a scary idea: Perhaps the Microsoft employee had not too > much knowledge about pointers and arrays in C, just saw that the function > requires a pointer as it third argument and hence took the address of the > array. Of course, the compiler complained about the programmer passing > "unsigned char **" to a function expecting "unsigned char *", and in > good-old Microsoft fashion he placed a cast to make the compiler shut up > .. I fear you are probably right. I have seen this sort of thing many times. - Julian |