]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGEventInput.cxx
Document that property write-protection is not a security measure
[flightgear.git] / src / Input / FGEventInput.cxx
index a6db87b3167280b36ad17fe331e72459085c7477..29bdc6e1d128a8d40337405b0f50c5fd3aa59938 100644 (file)
@@ -36,6 +36,7 @@ using simgear::PropertyList;
 using std::cout;
 using std::endl;
 using std::map;
+using std::string;
 
 FGEventSetting::FGEventSetting( SGPropertyNode_ptr base ) :
   value(0.0)
@@ -294,7 +295,7 @@ void FGInputDevice::SetName( string name )
 const char * FGEventInput::PROPERTY_ROOT = "/input/event";
 
 FGEventInput::FGEventInput() : 
-  configMap( "Input/Event")
+  configMap( "Input/Event", fgGetNode(PROPERTY_ROOT, true), "device-named")
 {
 }
 
@@ -385,6 +386,6 @@ void FGEventInput::RemoveDevice( unsigned index )
     delete inputDevice;
     
   }
-  deviceNode = baseNode->removeChild("device", index, false);
+  deviceNode = baseNode->removeChild("device", index);
 }