//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
#include <simgear/compiler.h>
+#include <simgear/misc/sg_path.hxx>
#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/structure/commands.hxx>
#include <simgear/props/condition.hxx>
/**
* Destructor.
*/
- virtual ~FGBinding () {}
+ virtual ~FGBinding ();
/**
//
virtual void init ();
virtual void reinit ();
+ virtual void postinit ();
virtual void update (double dt);
virtual void suspend ();
virtual void resume ();
void _init_joystick ();
+ /**
+ * Scan directory recursively for "named joystick" configuration files,
+ * and read them into /input/joysticks/js-named[index]++.
+ */
+ void _scan_joystick_dir (SGPath *path, SGPropertyNode* node, int *index);
+
+
/**
* Initialize mouse bindings.
*/
button &b,
const string name);
+ /**
+ * Initialize nasal parts that had to wait for the nasal to get
+ * functional.
+ */
+ void _postinit_joystick ();
/**
* Update the keyboard.
joystick _joystick_bindings[MAX_JOYSTICKS];
mouse _mouse_bindings[MAX_MICE];
+ /**
+ * Nasal module name/namespace.
+ */
+ char _module[32];
};
#endif // _INPUT_HXX