Fix issue where CPU was pegged waiting for input.

This commit is contained in:
casey langen 2022-12-23 16:57:29 -08:00
parent f5692c22cf
commit af54d83f01

View File

@ -28,6 +28,8 @@ bool PDC_check_key(void)
DispatchMessage(&msg);
}
Sleep(1); /* otherwise the CPU is pegged */
if( PDC_key_queue_low != PDC_key_queue_high)
return TRUE;
return FALSE;