#ifndef _FGJOYSTICKINPUT_HXX
#define _FGJOYSTICKINPUT_HXX
-#ifndef __cplusplus
+#ifndef __cplusplus
# error This library requires C++
#endif
virtual void init();
virtual void postinit();
+ virtual void reinit();
virtual void update( double dt );
static const int MAX_JOYSTICKS = 10;
static const int MAX_JOYSTICK_BUTTONS = 32;
private:
+ void _remove(bool all);
+ SGPropertyNode_ptr status_node;
+
/**
* Settings for a single joystick axis.
*/
int nbuttons;
axis * axes;
FGButton * buttons;
+ bool predefined;
};
joystick bindings[MAX_JOYSTICKS];