Fix idling hogging 100% of a CPU core
This was me not converting the WinAPI code properly. Stupid me.
This commit is contained in:
parent
1b8fbcee43
commit
12f69e3c6c
1 changed files with 6 additions and 2 deletions
|
@ -364,9 +364,13 @@ void JoystickProc(void);
|
|||
|
||||
BOOL SystemTask(void)
|
||||
{
|
||||
SDL_Event event;
|
||||
while (SDL_PollEvent(&event) || !bActive)
|
||||
while (SDL_PollEvent(NULL) || !bActive)
|
||||
{
|
||||
SDL_Event event;
|
||||
|
||||
if (!SDL_WaitEvent(&event))
|
||||
return FALSE;
|
||||
|
||||
switch (event.type)
|
||||
{
|
||||
case SDL_KEYDOWN:
|
||||
|
|
Loading…
Add table
Reference in a new issue