]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGButton.hxx
Use the short xml name for properties in JSON
[flightgear.git] / src / Input / FGButton.hxx
index 675f969d29ac5f254d5b60b93ecbf1526ffb9a1b..497be1c460dedbd3f9a5d544bab62b96ed99022f 100644 (file)
 #define FGBUTTON_H
 
 #include "FGCommonInput.hxx"
-#include <Main/fg_os.hxx>
+#include <Main/fg_os.hxx> // for KEYMOD_MAX
 
 class FGButton : public FGCommonInput {
 public:
   FGButton();
   virtual ~FGButton();
-  void init( const SGPropertyNode * node, const std::string name, std::string & module );
+  void init( const SGPropertyNode * node, const std::string name, std::string & module );
   void update( int modifiers, bool pressed, int x = -1, int y = -1);
   bool is_repeatable;
-  float interval_sec;
+  float interval_sec, delay_sec, release_delay_sec;
   float last_dt;
   int last_state;
   binding_list_t bindings[KEYMOD_MAX];