Re: [Plib-devel] joystick OEMName fix for Windows XP/Vista
Brought to you by:
sjbaker
From: John F. F. <joh...@cy...> - 2009-03-13 03:08:20
|
Thomas, OK, I've put it into SVN. Please download the new version and make sure I've done it right. It's a simple patch, but I'm capable of anything. - John -----Original Message----- From: Reagan Thomas Sent: Saturday, March 07, 2009 2:55 PM To: pli...@li... Subject: [Plib-devel] joystick OEMName fix for Windows XP/Vista 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. << File: jsWindows.diff >> << File: ATT00114.txt >> << File: ATT00115.txt >> |