summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormasterex1000 <[email protected]>2021-02-08 08:57:19 -0700
committerGitHub <[email protected]>2021-02-08 16:57:19 +0100
commit52d0e86cc61c094604b7f64329dff5bdc3829ae5 (patch)
treee519a7c0f7634a731b7f76a0b9805105457e7c20 /src
parentcdd35d4b09a8634f1e4cda3bfa59405e83ccdc2f (diff)
downloadraylib-52d0e86cc61c094604b7f64329dff5bdc3829ae5.tar.gz
raylib-52d0e86cc61c094604b7f64329dff5bdc3829ae5.zip
Poll inputs after frame sleep (#1573)
Diffstat (limited to 'src')
-rw-r--r--src/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 0f8e5f65..4dce1873 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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)