Update of /cvsroot/plib/plib/src/js
In directory usw-pr-cvs1:/tmp/cvs-serv16377
Modified Files:
js.h
Log Message:
Made JS const-correct
Index: js.h
===================================================================
RCS file: /cvsroot/plib/plib/src/js/js.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- js.h 9 Mar 2002 16:33:50 -0000 1.14
+++ js.h 17 Apr 2002 21:34:42 -0000 1.15
@@ -432,7 +432,7 @@
#endif
}
- float fudge_axis ( float value, int axis )
+ float fudge_axis ( float value, int axis ) const
{
if ( value < center[axis] )
{
@@ -497,23 +497,23 @@
close () ;
}
- int getNumAxes () { return num_axes ; }
- int notWorking () { return error ; }
+ int getNumAxes () const { return num_axes ; }
+ int notWorking () const { return error ; }
void setError () { error = JS_TRUE ; }
- float getDeadBand ( int axis ) { return dead_band [ axis ] ; }
+ float getDeadBand ( int axis ) const { return dead_band [ axis ] ; }
void setDeadBand ( int axis, float db ) { dead_band [ axis ] = db ; }
- float getSaturation ( int axis ) { return saturate [ axis ] ; }
+ float getSaturation ( int axis ) const { return saturate [ axis ] ; }
void setSaturation ( int axis, float st ) { saturate [ axis ] = st ; }
void setMinRange ( float *axes ) { memcpy ( min , axes, num_axes * sizeof(float) ) ; }
void setMaxRange ( float *axes ) { memcpy ( max , axes, num_axes * sizeof(float) ) ; }
void setCenter ( float *axes ) { memcpy ( center, axes, num_axes * sizeof(float) ) ; }
- void getMinRange ( float *axes ) { memcpy ( axes, min , num_axes * sizeof(float) ) ; }
- void getMaxRange ( float *axes ) { memcpy ( axes, max , num_axes * sizeof(float) ) ; }
- void getCenter ( float *axes ) { memcpy ( axes, center, num_axes * sizeof(float) ) ; }
+ void getMinRange ( float *axes ) const { memcpy ( axes, min , num_axes * sizeof(float) ) ; }
+ void getMaxRange ( float *axes ) const { memcpy ( axes, max , num_axes * sizeof(float) ) ; }
+ void getCenter ( float *axes ) const { memcpy ( axes, center, num_axes * sizeof(float) ) ; }
void read ( int *buttons, float *axes )
{
@@ -727,5 +727,4 @@
//lint -restore
#endif
-
|