Added a function that clears the keyboard buffer.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9958 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-15 18:02:50 +00:00
parent 8a4b1da1e7
commit 356f4957fa
2 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,14 @@ check_for_key(void)
}
extern "C" void
clear_key_buffer(void)
{
while (check_for_key() != 0)
;
}
extern "C" union key
wait_for_key(void)
{

View File

@ -26,6 +26,7 @@ union key {
extern "C" {
#endif
extern void clear_key_buffer(void);
extern union key wait_for_key(void);
extern uint32 check_for_boot_keys(void);