Fix input lag in SDL2 backend

If you spam keyboard inputs, they'll eventually lag behind. This was
caused by improperly porting the WinAPI logic to SDL2 and CSE2's
fancy backend-abstraction system.
This commit is contained in:
Clownacy 2020-07-13 00:19:27 +01:00
parent 1582af91cf
commit a392034fd6

View file

@ -165,7 +165,7 @@ void PlaybackBackend_EnableDragAndDrop(void)
bool Backend_SystemTask(bool active)
{
if (SDL_PollEvent(NULL) || !active)
while (SDL_PollEvent(NULL))
{
SDL_Event event;