Pārlūkot izejas kodu

Poll inputs after frame sleep (#1573)

pull/1581/head
masterex1000 pirms 5 gadiem
committed by GitHub
vecāks
revīzija
52d0e86cc6
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      src/core.c

+ 2
- 1
src/core.c Parādīt failu

@ -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)

Notiek ielāde…
Atcelt
Saglabāt