1
0
Fork 0

Problem reported by Erik Hofman:

Replaced left-over std::cout statements with SG_LOG statements.
This commit is contained in:
david 2002-07-18 22:38:46 +00:00
parent 35e67c3a31
commit e5f4da0e9a

View file

@ -484,14 +484,15 @@ FGInput::_init_joystick ()
} else {
#ifdef FG_PLIB_JOYSTICK_GETNAME
const char * name = js->getName();
std::cout << "Looking for bindings for joystick \""
<< name << '"' << std::endl;
SG_LOG(SG_INPUT, SG_INFO, "Looking for bindings for joystick \""
<< name << '"');
vector<SGPropertyNode_ptr> nodes = js_nodes->getChildren("js-named");
for (unsigned int i = 0; i < nodes.size(); i++) {
SGPropertyNode_ptr node = nodes[i];
std::cout << " Trying \"" << node->getStringValue("name") << '"' << std::endl;
SG_LOG(SG_INPUT, SG_INFO,
" Trying \"" << node->getStringValue("name") << '"');
if (!strcmp(node->getStringValue("name"), name)) {
std::cout << " Found bindings" << std::endl;
SG_LOG(SG_INPUT, SG_INFO, " Found bindings");
js_node = node;
break;
}