diff --git a/examples/core/core_custom_frame_control.c b/examples/core/core_custom_frame_control.c index 93181e763..11f62c4ab 100644 --- a/examples/core/core_custom_frame_control.c +++ b/examples/core/core_custom_frame_control.c @@ -54,8 +54,6 @@ int main(void) { // Update //---------------------------------------------------------------------------------- - PollInputEvents(); // Poll input events (SUPPORT_CUSTOM_FRAME_CONTROL) - if (IsKeyPressed(KEY_SPACE)) pause = !pause; if (IsKeyPressed(KEY_UP)) targetFPS += 20; @@ -113,6 +111,8 @@ int main(void) else deltaTime = updateDrawTime; // Framerate could be variable previousTime = currentTime; + + PollInputEvents(); // Poll input events (SUPPORT_CUSTOM_FRAME_CONTROL) //---------------------------------------------------------------------------------- }