1
0
Fork 0

Make tooltips independent of cursor auto-hide.

This commit is contained in:
James Turner 2013-03-10 10:17:27 +00:00
parent 461d89cb22
commit 0971ed1f2c

View file

@ -387,17 +387,17 @@ void FGMouseInput::update ( double dt )
}
}
// if delay is <= 0, disable tooltips
if ( !d->tooltipTimeoutDone &&
(d->tooltipDelayMsec > 0) &&
(m.timeSinceLastMove.elapsedMSec() > d->tooltipDelayMsec))
{
d->tooltipTimeoutDone = true;
SGPropertyNode_ptr arg(new SGPropertyNode);
globals->get_commands()->execute("tooltip-timeout", arg);
}
if ( d->hideCursor ) {
// if delay is <= 0, disable tooltips
if ( !d->tooltipTimeoutDone &&
(d->tooltipDelayMsec > 0) &&
(m.timeSinceLastMove.elapsedMSec() > d->tooltipDelayMsec))
{
d->tooltipTimeoutDone = true;
SGPropertyNode_ptr arg(new SGPropertyNode);
globals->get_commands()->execute("tooltip-timeout", arg);
}
if ( m.timeSinceLastMove.elapsedMSec() > d->cursorTimeoutMsec) {
FGMouseCursor::instance()->hideCursorUntilMouseMove();
m.timeSinceLastMove.stamp();