-#include <map>
-#include <vector>
-
-SG_USING_STD(map);
-SG_USING_STD(vector);
-
-/**
- * An input binding of some sort.
- *
- * <p>This class represents a binding that can be assigned to a
- * keyboard key, a joystick button or axis, or even a panel
- * instrument.</p>
- */
-class FGBinding
-{
-public:
-
- enum Action {
- ACTION_NONE,
- ACTION_SWITCH,
- ACTION_ADJUST,
- ACTION_ASSIGN
- };
-
- FGBinding ();
- FGBinding (const SGPropertyNode * node);
- virtual ~FGBinding ();
-
- virtual Action getAction () const { return _action; }
- virtual SGPropertyNode * getProperty () { return _node; }
- virtual const SGPropertyNode * getProperty () const { return _node; }
- virtual const SGValue * getAdjustStep () const { return _adjust_step; }
- virtual const SGValue * getAssignValue () const { return _assign_value; }
-
- virtual void setAction (Action action);
- virtual void setProperty (SGPropertyNode * node);
- virtual void setAdjustStep (const SGValue * step);
- virtual void setAssignValue (const SGValue * value);
-
- virtual void read (const SGPropertyNode * node);
-
- virtual void fire () const;
-// virtual void fire (double value);
-// virtual void fire (int xdelta, int ydelta);
-
-private:
- Action _action;
- SGPropertyNode * _node;
- const SGValue * _adjust_step;
- const SGValue * _assign_value;
-};
+\f
+////////////////////////////////////////////////////////////////////////
+// General input mapping support.
+////////////////////////////////////////////////////////////////////////