1
0
Fork 0

- removed some verbose output

This commit is contained in:
curt 2001-07-24 23:50:52 +00:00
parent c5d7944b17
commit ffd94e24a1

View file

@ -212,8 +212,8 @@ FGInput::update ()
void
FGInput::doKey (int k, int modifiers, int x, int y)
{
SG_LOG(SG_INPUT, SG_INFO, "User pressed key " << k
<< " with modifiers " << modifiers);
// SG_LOG( SG_INPUT, SG_INFO, "User pressed key " << k
// << " with modifiers " << modifiers );
// Sanity check.
if (k < 0 || k >= MAX_KEYS) {
@ -257,7 +257,7 @@ FGInput::doKey (int k, int modifiers, int x, int y)
// Use the old, default actions.
SG_LOG(SG_INPUT, SG_INFO, "(No user binding.)");
// SG_LOG( SG_INPUT, SG_INFO, "(No user binding.)" );
if (modifiers&FG_MOD_UP)
return;
@ -550,14 +550,14 @@ FGInput::_update_button (button &b, int modifiers, bool pressed)
if (pressed) {
// The press event may be repeated.
if (!b.last_state || b.is_repeatable) {
SG_LOG(SG_INPUT, SG_INFO, "Button has been pressed");
// SG_LOG( SG_INPUT, SG_INFO, "Button has been pressed" );
for (unsigned int k = 0; k < b.bindings[modifiers].size(); k++)
b.bindings[modifiers][k].fire();
}
} else {
// The release event is never repeated.
if (b.last_state) {
SG_LOG(SG_INPUT, SG_INFO, "Button has been released");
// SG_LOG( SG_INPUT, SG_INFO, "Button has been released" );
for (unsigned int k = 0; k < b.bindings[modifiers|FG_MOD_UP].size(); k++)
b.bindings[modifiers|FG_MOD_UP][k].fire();
}