- Use PeekConsoleInput in kbhit because the input buffer should not be affected. Patch by Roy Tam
CORE-8030 #resolve
svn path=/trunk/; revision=62587
volatile BOOL CriticalSectionInitialized=FALSE;
/*
- * FIXME Initial keyboard char not detected on first punch
- *
* @implemented
*/
return 0;
}
- if (!ReadConsoleInput(StdInputHandle, InputRecord, EventsRead, &NumberRead))
+ if (!PeekConsoleInput(StdInputHandle, InputRecord, EventsRead, &NumberRead))
{
free(InputRecord);
LeaveCriticalSection(&CriticalSection);