From 85b72ca88a05ac42ae19b9e99b7ae22ea40706c0 Mon Sep 17 00:00:00 2001 From: patricejiang Date: Tue, 11 Jun 2019 10:16:20 +0800 Subject: [PATCH] pollEvents in loop --- cocos/platform/mac/CCApplication-mac.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/platform/mac/CCApplication-mac.mm b/cocos/platform/mac/CCApplication-mac.mm index 4987d1b9d1..05c91fc5e1 100644 --- a/cocos/platform/mac/CCApplication-mac.mm +++ b/cocos/platform/mac/CCApplication-mac.mm @@ -83,6 +83,7 @@ int Application::run() lastTime = getCurrentMillSecond(); director->mainLoop(); + glview->pollEvents(); curTime = getCurrentMillSecond(); if (curTime - lastTime < _animationInterval)