Problem reported by Erik Hofman:
Replaced left-over std::cout statements with SG_LOG statements.
This commit is contained in:
parent
35e67c3a31
commit
e5f4da0e9a
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue