[Plib-cvs] plib/src/js jsNone.cxx,NONE,1.1 Makefile.am,1.8,1.9 README,1.1,1.2
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-11-30 15:52:42
|
Update of /cvsroot/plib/plib/src/js In directory sc8-pr-cvs1:/tmp/cvs-serv8728/plib/src/js Modified Files: Makefile.am README Added Files: jsNone.cxx Log Message: Added non-support for IRIX/SOLARIS. --- NEW FILE: jsNone.cxx --- /* Copyright (C) 1998,2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net $Id: jsNone.cxx,v 1.1 2002/11/30 15:52:38 sjbaker Exp $ */ #include "js.h" #if defined(UL_IRIX) || defined(UL_SOLARIS) /* check the joystick driver version */ void jsJoystick::open () { error = TRUE ; num_axes = num_buttons = 0 ; } void jsJoystick::close () { error = TRUE ; } jsJoystick::jsJoystick ( int ident ) { error = TRUE ; num_axes = num_buttons = 0 ; } void jsJoystick::rawRead ( int *buttons, float *axes ) { if ( buttons != NULL ) *buttons = 0 ; } #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/src/js/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile.am 29 Nov 2002 19:39:48 -0000 1.8 +++ Makefile.am 30 Nov 2002 15:52:38 -0000 1.9 @@ -5,7 +5,7 @@ include_HEADERS = js.h libplibjs_a_SOURCES = js.cxx jsLinux.cxx jsLinuxOld.cxx jsMacOS.cxx \ - jsWindows.cxx jsBSD.cxx + jsWindows.cxx jsBSD.cxx jsNone.cxx INCLUDES = -I$(top_srcdir)/src/util Index: README =================================================================== RCS file: /cvsroot/plib/plib/src/js/README,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- README 29 Nov 2002 19:39:48 -0000 1.1 +++ README 30 Nov 2002 15:52:38 -0000 1.2 @@ -21,3 +21,10 @@ jsBSD.cxx jsMacOS.cxx +...for OS's (eg IRIX and SOLARIS) without standard joystick +functionality, we add: + + jsNone.cxx + +...which safely returns error status with no buttons or axes provided. + |