mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 09:49:21 +02:00
add back send posted touch events
This commit is contained in:
parent
f3fd5c9847
commit
785ae190ca
1 changed files with 10 additions and 5 deletions
|
@ -1781,6 +1781,14 @@ void Application::idle() {
|
||||||
}
|
}
|
||||||
double timeSinceLastUpdate = (double)_lastTimeUpdated.nsecsElapsed() / 1000000.0;
|
double timeSinceLastUpdate = (double)_lastTimeUpdated.nsecsElapsed() / 1000000.0;
|
||||||
if (timeSinceLastUpdate > targetFramePeriod) {
|
if (timeSinceLastUpdate > targetFramePeriod) {
|
||||||
|
|
||||||
|
{
|
||||||
|
PerformanceTimer perfTimer("sendPostedEvents(touch)");
|
||||||
|
sendPostedEvents(NULL, QEvent::TouchBegin);
|
||||||
|
sendPostedEvents(NULL, QEvent::TouchUpdate);
|
||||||
|
sendPostedEvents(NULL, QEvent::TouchEnd);
|
||||||
|
}
|
||||||
|
|
||||||
_lastTimeUpdated.start();
|
_lastTimeUpdated.start();
|
||||||
{
|
{
|
||||||
PerformanceTimer perfTimer("update");
|
PerformanceTimer perfTimer("update");
|
||||||
|
@ -1805,9 +1813,6 @@ void Application::idle() {
|
||||||
_idleLoopMeasuredJitter = _idleLoopStdev.getStDev();
|
_idleLoopMeasuredJitter = _idleLoopStdev.getStDev();
|
||||||
_idleLoopStdev.reset();
|
_idleLoopStdev.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
// After finishing all of the above work, restart the idle timer, allowing 2ms to process events.
|
|
||||||
idleTimer->start(2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue