[Plib-cvs] plib/src/js js.h,1.33,1.34 jsWindows.cxx,1.6,1.7
Brought to you by:
sjbaker
From: Bram S. <br...@us...> - 2006-01-30 07:36:12
|
Update of /cvsroot/plib/plib/src/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32730/src/js Modified Files: js.h jsWindows.cxx Log Message: Expose num_buttons Index: js.h =================================================================== RCS file: /cvsroot/plib/plib/src/js/js.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- js.h 20 Oct 2004 23:49:33 -0000 1.33 +++ js.h 30 Jan 2006 07:36:01 -0000 1.34 @@ -68,6 +68,7 @@ const char* getName () const { return name ; } int getNumAxes () const { return num_axes ; } + int getNumButtons () const { return num_buttons; } int notWorking () const { return error ; } void setError () { error = JS_TRUE ; } Index: jsWindows.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/js/jsWindows.cxx,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- jsWindows.cxx 2 Dec 2004 20:11:56 -0000 1.6 +++ jsWindows.cxx 30 Jan 2006 07:36:01 -0000 1.7 @@ -105,6 +105,7 @@ error = ( joyGetDevCaps( os->js_id, &(os->jsCaps), sizeof(os->jsCaps) ) != JOYERR_NOERROR ) ; + num_buttons = os->jsCaps.wNumButtons ; if ( os->jsCaps.wNumAxes == 0 ) { num_axes = 0 ; |