[Plib-devel] joystick OEMName fix for Windows XP/Vista
Brought to you by:
sjbaker
From: Reagan T. <tho...@gm...> - 2009-03-07 20:55:02
|
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. |