Poll inputs after frame sleep

This commit is contained in:
Collin 2021-02-07 21:06:40 -07:00
parent 70965f20d5
commit 658d9dc51f

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)