Vivian Meazza wrote :
Hmmm ... last time I tried Plib cvs (last week) there seemed to be some
problem with joystick axes under Cygwin. I reverted to 1.8.3, no problem.
Lack of time has precluded further investigation.
I already posted on that subject on the plib list but without any response.
The patch below will cure the joystick problem on Windows :
Index: jsWindows.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/js/jsWindows.cxx,v
retrieving revision 1.5
diff -u -r1.5 jsWindows.cxx
--- jsWindows.cxx 21 Sep 2004 11:45:55 -0000 1.5
+++ jsWindows.cxx 7 Oct 2004 21:47:48 -0000
@@ -126,7 +126,7 @@
// X,Y,Z,R,U,V,POV - not necessarily the first n of these.
if ( os->jsCaps.wCaps & JOYCAPS_HASPOV )
{
- num_axes = _JS_MAX_AXES ;
+ num_axes = _JS_MAX_AXES_WIN ;
min [ 7 ] = -1.0 ; max [ 7 ] = 1.0 ; // POV Y
min [ 6 ] = -1.0 ; max [ 6 ] = 1.0 ; // POV X
}
-Fred
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d