diff options
| author | masterex1000 <[email protected]> | 2021-02-08 08:57:19 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-08 16:57:19 +0100 |
| commit | 52d0e86cc61c094604b7f64329dff5bdc3829ae5 (patch) | |
| tree | e519a7c0f7634a731b7f76a0b9805105457e7c20 /src | |
| parent | cdd35d4b09a8634f1e4cda3bfa59405e83ccdc2f (diff) | |
| download | raylib-52d0e86cc61c094604b7f64329dff5bdc3829ae5.tar.gz raylib-52d0e86cc61c094604b7f64329dff5bdc3829ae5.zip | |
Poll inputs after frame sleep (#1573)
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
