Re: [Plib-devel] [Patch] Re: joystick OEMName fix for Windows XP/Vista
Brought to you by:
sjbaker
From: Reagan T. <tho...@gm...> - 2009-03-10 00:24:41
|
On Mon, Mar 9, 2009 at 7:22 PM, Reagan Thomas <tho...@gm...> wrote: > I apologize for not putting [Patch] in the subject line previously. > The attached patch is to allow plib to correctly return the joystick > OEMName when "getOEMProductName" is called under Windows Vista. > > This patch is to jsWindows.cxx which causes (in my tests) the joystick > OEMName to be properly returned by "getOEMProductName" in both Windows > XP and Vista. In my tests today, under Windows XP SP3, both the last > release plib "getOEMProductName" and the latest from trunk with the > attached patch return the proper OEMName for my Saitek joystick. Under > Windows Vista, plib trunk only returns the correct value with the > attached patch applied. I am still unable to test under Windows 2000 > or earlier. > > On Sat, Mar 7, 2009 at 3:54 PM, Reagan Thomas <tho...@gm...> wrote: >> It seems that Microsoft no longer (Vista and maybe XP) places the >> joystick OEMName in HKEY_LOCAL_MACHINE, causing "getOEMProductName" to >> fail. Instead, the joystick name can be found in HKEY_CURRENT_USER. >> >> The attached patch has been tested on Windows XP and Windows Vista >> with "JS_demo.exe" from the FlightGear project. If it fails to read >> the value from HKLM, it attempts to read it from HKCU. I do not have >> access to Win2k or 9x versions for testing. >> >> Thanks. >> > Er, that would be the previously attached patch ;) |