+ for (unsigned int c=0; c<children.size(); ++c) {
+ SGPath path(children[c]);
+ if (path.isDir()) {
+ scan_dir(path, index);
+ } else if (path.extension() == "xml") {
+ SG_LOG(SG_INPUT, SG_DEBUG, "Reading joystick file " << path.str());
+ SGPropertyNode_ptr n = base->getChild(childname, (*index)++, true);
+ readProperties(path.str(), n);
+ n->setStringValue("source", path.c_str());