[Plib-cvs] plib/src/js js.h,1.24,1.25
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-09 22:11:05
|
Update of /cvsroot/plib/plib/src/js In directory usw-pr-cvs1:/tmp/cvs-serv26029 Modified Files: js.h Log Message: Separated jsJoystick API from implementation in js.h (boy, we need libplibjs ...) Index: js.h =================================================================== RCS file: /cvsroot/plib/plib/src/js/js.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- js.h 9 Sep 2002 20:51:31 -0000 1.24 +++ js.h 9 Sep 2002 22:11:00 -0000 1.25 @@ -119,27 +119,24 @@ # endif #endif + class jsJoystick { #ifdef macintosh +# define isp_num_axis 9 +# define isp_num_needs 41 - #define isp_num_axis 9 [...1173 lines suppressed...] - if ( axes ) - { - axes[0] = (float) js.x ; - axes[1] = (float) js.y ; - } + if ( axes != NULL ) + { + axes[0] = (float) js.x ; + axes[1] = (float) js.y ; + } # endif #endif - } -} ; - -extern void jsInit () ; +} //lint -restore |