/*
 * COPYRIGHT:   See COPYING in the top level directory
 * PROJECT:     ReactOS system libraries
 * FILE:        lib/msvcrt/conio/kbhit.c
 * PURPOSE:     Checks for keyboard hits
 * PROGRAMER:   Ariadne
 * UPDATE HISTORY:
 *              28/12/98: Created
 */

#include <precomp.h>

/*
 * FIXME PeekConsoleInput returns more than keyboard hits
 *
 * @unimplemented
 */
int _kbhit(void)
{
  //INPUT_RECORD InputRecord;
  DWORD NumberRead=0;
  if (char_avail)
    return(1);
  else {
      //FIXME PeekConsoleInput might do DeviceIo
      //PeekConsoleInput((HANDLE)stdin->_file,&InputRecord,1,&NumberRead);
      return NumberRead;
    }
  return 0;
}
