Make tooltips independent of cursor auto-hide.
This commit is contained in:
parent
461d89cb22
commit
0971ed1f2c
1 changed files with 10 additions and 10 deletions
|
@ -387,17 +387,17 @@ void FGMouseInput::update ( double dt )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( d->hideCursor ) {
|
// if delay is <= 0, disable tooltips
|
||||||
// if delay is <= 0, disable tooltips
|
if ( !d->tooltipTimeoutDone &&
|
||||||
if ( !d->tooltipTimeoutDone &&
|
(d->tooltipDelayMsec > 0) &&
|
||||||
(d->tooltipDelayMsec > 0) &&
|
(m.timeSinceLastMove.elapsedMSec() > d->tooltipDelayMsec))
|
||||||
(m.timeSinceLastMove.elapsedMSec() > d->tooltipDelayMsec))
|
{
|
||||||
{
|
d->tooltipTimeoutDone = true;
|
||||||
d->tooltipTimeoutDone = true;
|
SGPropertyNode_ptr arg(new SGPropertyNode);
|
||||||
SGPropertyNode_ptr arg(new SGPropertyNode);
|
globals->get_commands()->execute("tooltip-timeout", arg);
|
||||||
globals->get_commands()->execute("tooltip-timeout", arg);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if ( d->hideCursor ) {
|
||||||
if ( m.timeSinceLastMove.elapsedMSec() > d->cursorTimeoutMsec) {
|
if ( m.timeSinceLastMove.elapsedMSec() > d->cursorTimeoutMsec) {
|
||||||
FGMouseCursor::instance()->hideCursorUntilMouseMove();
|
FGMouseCursor::instance()->hideCursorUntilMouseMove();
|
||||||
m.timeSinceLastMove.stamp();
|
m.timeSinceLastMove.stamp();
|
||||||
|
|
Loading…
Reference in a new issue