add back send posted touch events

This commit is contained in:
Stephen Birarda 2015-07-22 17:49:27 -07:00
parent f3fd5c9847
commit 785ae190ca

View file

@ -1781,6 +1781,14 @@ void Application::idle() {
}
double timeSinceLastUpdate = (double)_lastTimeUpdated.nsecsElapsed() / 1000000.0;
if (timeSinceLastUpdate > targetFramePeriod) {
{
PerformanceTimer perfTimer("sendPostedEvents(touch)");
sendPostedEvents(NULL, QEvent::TouchBegin);
sendPostedEvents(NULL, QEvent::TouchUpdate);
sendPostedEvents(NULL, QEvent::TouchEnd);
}
_lastTimeUpdated.start();
{
PerformanceTimer perfTimer("update");
@ -1805,9 +1813,6 @@ void Application::idle() {
_idleLoopMeasuredJitter = _idleLoopStdev.getStDev();
_idleLoopStdev.reset();
}
// After finishing all of the above work, restart the idle timer, allowing 2ms to process events.
idleTimer->start(2);
}
}