- removed some verbose output
This commit is contained in:
parent
c5d7944b17
commit
ffd94e24a1
1 changed files with 5 additions and 5 deletions
|
@ -212,8 +212,8 @@ FGInput::update ()
|
||||||
void
|
void
|
||||||
FGInput::doKey (int k, int modifiers, int x, int y)
|
FGInput::doKey (int k, int modifiers, int x, int y)
|
||||||
{
|
{
|
||||||
SG_LOG(SG_INPUT, SG_INFO, "User pressed key " << k
|
// SG_LOG( SG_INPUT, SG_INFO, "User pressed key " << k
|
||||||
<< " with modifiers " << modifiers);
|
// << " with modifiers " << modifiers );
|
||||||
|
|
||||||
// Sanity check.
|
// Sanity check.
|
||||||
if (k < 0 || k >= MAX_KEYS) {
|
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.
|
// 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)
|
if (modifiers&FG_MOD_UP)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -550,14 +550,14 @@ FGInput::_update_button (button &b, int modifiers, bool pressed)
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
// The press event may be repeated.
|
// The press event may be repeated.
|
||||||
if (!b.last_state || b.is_repeatable) {
|
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++)
|
for (unsigned int k = 0; k < b.bindings[modifiers].size(); k++)
|
||||||
b.bindings[modifiers][k].fire();
|
b.bindings[modifiers][k].fire();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// The release event is never repeated.
|
// The release event is never repeated.
|
||||||
if (b.last_state) {
|
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++)
|
for (unsigned int k = 0; k < b.bindings[modifiers|FG_MOD_UP].size(); k++)
|
||||||
b.bindings[modifiers|FG_MOD_UP][k].fire();
|
b.bindings[modifiers|FG_MOD_UP][k].fire();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue