#include STL_FSTREAM
#include STL_STRING
-#include <jssuper.h>
#include <jsinput.h>
SG_USING_STD(string);
jsSuper *jss=new jsSuper();
jsInput *jsi=new jsInput(jss);
jsi->displayValues(false);
- int i;
+ // int i;
int control=0;
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#include <jssuper.h>
#include <jsinput.h>
-#include <plib/js.h>
-#include <plib/ul.h>
-
jsInput::jsInput(jsSuper *j) {
jss=j;
bool gotit=false;
float delta;
- int i,current_button=0,button_bits;
+ int i, current_button = 0, button_bits = 0;
joystick=axis=button=-1;
}
}
}
+
+ return 0;
}
#define _JSINPUT_H
#include <jssuper.h>
-#include <plib/js.h>
class jsInput {
private:
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#include <string.h> // plib/js.h should really include this !!!!!!
-#include <plib/js.h>
-
#include <jssuper.h>
int jsSuper::nextJoystick(void) {
- int i;
+ // int i;
if(!activeJoysticks) return 0;
if(currentJoystick == last ) return 0;
currentJoystick++;
}
int jsSuper::prevJoystick(void) {
- int i;
+ // int i;
if(!activeJoysticks) return 0;
if(currentJoystick == first ) return 0;
currentJoystick--;
#ifndef _JSSUPER_H
#define _JSSUPER_H
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>