mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-18 17:28:15 +00:00
Poll inputs after frame sleep (#1573)
This commit is contained in:
@@ -1847,7 +1847,6 @@ void EndDrawing(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
SwapBuffers(); // Copy back buffer to front buffer
|
SwapBuffers(); // Copy back buffer to front buffer
|
||||||
PollInputEvents(); // Poll user events
|
|
||||||
|
|
||||||
// Frame time control system
|
// Frame time control system
|
||||||
CORE.Time.current = GetTime();
|
CORE.Time.current = GetTime();
|
||||||
@@ -1867,6 +1866,8 @@ void EndDrawing(void)
|
|||||||
|
|
||||||
CORE.Time.frame += waitTime; // Total frame time: update + draw + wait
|
CORE.Time.frame += waitTime; // Total frame time: update + draw + wait
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PollInputEvents(); // Poll user events
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize 2D mode with custom camera (2D)
|
// Initialize 2D mode with custom camera (2D)
|
||||||
|
Reference in New Issue
Block a user