1
0
Fork 0

a missing /input/joysticks/ node is no alarming sign any more. It's

supposed to get populated from $FG_ROOT/Input/Joysticks/.
This commit is contained in:
mfranz 2005-06-12 13:35:55 +00:00
parent 4a1eadbf35
commit defa571d86

View 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());