mirror of https://github.com/axmolengine/axmol.git
pollEvents in loop
This commit is contained in:
parent
0d2b40b6ec
commit
85b72ca88a
|
@ -83,6 +83,7 @@ int Application::run()
|
|||
lastTime = getCurrentMillSecond();
|
||||
|
||||
director->mainLoop();
|
||||
glview->pollEvents();
|
||||
|
||||
curTime = getCurrentMillSecond();
|
||||
if (curTime - lastTime < _animationInterval)
|
||||
|
|
Loading…
Reference in New Issue