]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGButton.cxx
Use the short xml name for properties in JSON
[flightgear.git] / src / Input / FGButton.cxx
index cb03aeac4f1a158333292781e2cf68638b1a9159..400de289e8f805bfd6d2942e1d67a8c425aed5a9 100644 (file)
 
 #include "FGButton.hxx"
 
-#include <simgear/math/SGMath.hxx>
 
 FGButton::FGButton ()
   : is_repeatable(false),
     interval_sec(0),
+    delay_sec(0),
+    release_delay_sec(0),
     last_dt(0),
     last_state(0)
 {
@@ -45,7 +46,7 @@ FGButton::~FGButton ()
 }
 
 
-void FGButton::init( const SGPropertyNode * node, const string name, string & module )
+void FGButton::init( const SGPropertyNode * node, const std::string & name, std::string & module )
 {
   if (node == 0) {
     SG_LOG(SG_INPUT, SG_DEBUG, "No bindings for button " << name);