mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
replace glfwWaitEvents with glfwWaitEventsTimeout
This commit is contained in:
parent
fc68d6ceca
commit
fb78e9f694
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ public:
|
||||||
codepoints.clear();
|
codepoints.clear();
|
||||||
pressedKeys.clear();
|
pressedKeys.clear();
|
||||||
if (waitForRefresh) {
|
if (waitForRefresh) {
|
||||||
glfwWaitEvents();
|
glfwWaitEventsTimeout(0.5);
|
||||||
} else {
|
} else {
|
||||||
glfwPollEvents();
|
glfwPollEvents();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue