Poll inputs after frame sleep (#1573)

This commit is contained in:
masterex1000 2021-02-08 08:57:19 -07:00 committed by GitHub
parent cdd35d4b09
commit 52d0e86cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1847,7 +1847,6 @@ void EndDrawing(void)
#endif
SwapBuffers(); // Copy back buffer to front buffer
PollInputEvents(); // Poll user events
// Frame time control system
CORE.Time.current = GetTime();
@ -1867,6 +1866,8 @@ void EndDrawing(void)
CORE.Time.frame += waitTime; // Total frame time: update + draw + wait
}
PollInputEvents(); // Poll user events
}
// Initialize 2D mode with custom camera (2D)