#include <simgear/compiler.h>
-#include <simgear/misc/commands.hxx>
-#include <simgear/misc/props.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
+#include <simgear/structure/commands.hxx>
+#include <simgear/props/condition.hxx>
+#include <simgear/props/props.hxx>
-#include <Main/fgfs.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
* keyboard key, a joystick button or axis, or even a panel
* instrument.</p>
*/
-class FGBinding : public FGConditional
+class FGBinding : public SGConditional
{
public:
* keyboard, joystick, mouse, or even panel switches -- in a consistent
* way, and to allow users to rebind any of the actions at runtime.</p>
*/
-class FGInput : public FGSubsystem
+class FGInput : public SGSubsystem
{
public:
virtual ~FGInput();
//
- // Implementation of FGSubsystem.
+ // Implementation of SGSubsystem.
//
virtual void init ();
virtual void update (double dt);
button ();
virtual ~button ();
bool is_repeatable;
+ float interval_sec;
+ float last_dt;
int last_state;
binding_list_t bindings[FG_MOD_MAX];
};
float high_threshold;
struct button low;
struct button high;
+ float interval_sec;
+ double last_dt;
};
/**
* Update the joystick.
*/
- void _update_joystick ();
+ void _update_joystick (double dt);
/**