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:
parent
1582af91cf
commit
a392034fd6
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ void PlaybackBackend_EnableDragAndDrop(void)
|
||||||
|
|
||||||
bool Backend_SystemTask(bool active)
|
bool Backend_SystemTask(bool active)
|
||||||
{
|
{
|
||||||
if (SDL_PollEvent(NULL) || !active)
|
while (SDL_PollEvent(NULL))
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue