Le 13/02/2010 00:05, Vivian Meazza a écrit :
> Melchior
>
>
>> * Vivian Meazza -- Friday 12 February 2010:
>>
>>> Tell me what Vista calls it in English, and I'll add it.
>>>
>> You completely miss the point. "Microsoft-PC-Joysticktreiber" is a generic
>> name that will probably be detected by plib <1.8.6 for *all* joysticks on
>> MS Vista in German language. So why on earth should fgfs choose that
>> particular
>> "SpeedLinkblack-widow" js driver for *all* joysticks? We have a generic
>> "default"
>> js for a reason, and that one doesn't assume 6 axes and 8 buttons. The fix
>> is
>> to remove that entry.
>>
>>
> Already done - but thanks for the tip anyway - I had forgotten that
> particular Vista stupidity
>
FYI, I sent a patch to a Plib maintainer (if there is still one) to fix
joystick detection in plib under vista/7. fgsetup-2.0.0.exe should
detect joyticks correctly. At least it works for me under Windows 7 64-bit.
The patch submitted is attached
-fred
Index: jsWindows.cxx
===================================================================
--- jsWindows.cxx (revision 2158)
+++ jsWindows.cxx (working copy)
@@ -63,7 +63,7 @@
if ( lr != ERROR_SUCCESS )
{
- // XP/Vista seem to have moved it to "current user"
+ // XP/Vista/7 seem to have moved it to "current user"
lr = RegOpenKeyEx ( HKEY_CURRENT_USER, key, 0, KEY_QUERY_VALUE, &hKey) ;
if ( lr != ERROR_SUCCESS ) return false ;
}
@@ -84,7 +84,12 @@
lr = RegOpenKeyEx ( HKEY_LOCAL_MACHINE, key, 0, KEY_QUERY_VALUE, &hKey ) ;
- if ( lr != ERROR_SUCCESS ) return false ;
+ if ( lr != ERROR_SUCCESS )
+ {
+ // XP/Vista/7 seem to have moved it to "current user"
+ lr = RegOpenKeyEx ( HKEY_CURRENT_USER, key, 0, KEY_QUERY_VALUE, &hKey) ;
+ if ( lr != ERROR_SUCCESS ) return false ;
+ }
// Get OEM Name
dwcb = buf_sz ;
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel