]> git.mxchange.org Git - flightgear.git/commitdiff
a missing /input/joysticks/ node is no alarming sign any more. It's
authormfranz <mfranz>
Sun, 12 Jun 2005 13:35:55 +0000 (13:35 +0000)
committermfranz <mfranz>
Sun, 12 Jun 2005 13:35:55 +0000 (13:35 +0000)
supposed to get populated from $FG_ROOT/Input/Joysticks/.

src/Input/input.cxx

index 4ff9c98904737940ef0f966075bffb93cb68b906..557272fac5cfef69935d056c100b7a3dba8738e5 100644 (file)
@@ -426,11 +426,7 @@ FGInput::_init_joystick ()
   jsInit();
                                 // TODO: zero the old bindings first.
   SG_LOG(SG_INPUT, SG_DEBUG, "Initializing joystick bindings");
-  SGPropertyNode * js_nodes = fgGetNode("/input/joysticks");
-  if (js_nodes == 0) {
-    SG_LOG(SG_INPUT, SG_WARN, "No joystick bindings (/input/joysticks)!!");
-    js_nodes = fgGetNode("/input/joysticks", true);
-  }
+  SGPropertyNode * js_nodes = fgGetNode("/input/joysticks", true);
 
   // read all joystick xml files into /input/joysticks/js_named[1000++]
   SGPath path(globals->get_fg_root());