#include <simgear/compiler.h>
#include <simgear/misc/commands.hxx>
-#include <simgear/misc/props.hxx>
+#include <simgear/props/condition.hxx>
+#include <simgear/props/props.hxx>
#include <Main/fgfs.hxx>
+#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <map>
SG_USING_STD(vector);
+
+
\f
////////////////////////////////////////////////////////////////////////
// General binding support.
* keyboard key, a joystick button or axis, or even a panel
* instrument.</p>
*/
-class FGBinding : public FGConditional
+class FGBinding : public SGConditional
{
public:
private:
+ // just to be safe.
+ FGBinding (const FGBinding &binding);
+
string _command_name;
- SGCommandMgr::command_t _command;
+ mutable SGCommandMgr::command_t _command;
mutable SGPropertyNode * _arg;
- mutable SGPropertyNode * _setting;
- mutable SGCommandState * _command_state;
+ mutable SGPropertyNode_ptr _setting;
};
// Implementation of FGSubsystem.
//
virtual void init ();
- virtual void bind ();
- virtual void unbind ();
virtual void update (double dt);
+ virtual void suspend ();
+ virtual void resume ();
+ virtual bool is_suspended () const;
/**