remove wait and timeout from keyboard_keypressed()

This commit is contained in:
Laurent Vivier 2005-08-27 15:46:47 +00:00
parent 3298458062
commit 488ccb3a9b
2 changed files with 3 additions and 10 deletions

View File

@ -324,16 +324,9 @@ static int keyboard_catch()
return 0;
}
int keyboard_keypressed(int timeout)
int keyboard_keypressed()
{
long time = Ticks + timeout;
while (Ticks < time)
{
if (keyboard_catch())
return 1;
}
return 0;
return keyboard_catch();
}
int keyboard_getchar()

View File

@ -124,5 +124,5 @@ typedef enum scancodes {
extern void keyboard_get_scancode(int *modifiers, int *code);
extern int keyboard_convert_scancode(int modifiers, int scancode);
extern int keyboard_keypressed(int timeout);
extern int keyboard_keypressed(void);
extern int keyboard_getchar();