Browse Source

Poll inputs after frame sleep (#1573)

pull/1581/head
masterex1000 3 years ago
committed by GitHub
parent
commit
52d0e86cc6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/core.c

+ 2
- 1
src/core.c 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)

Loading…
Cancel
Save