mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fix issue where CPU was pegged waiting for input.
This commit is contained in:
parent
f5692c22cf
commit
af54d83f01
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user