mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-14 22:04:43 +00:00
remove wait and timeout from keyboard_keypressed()
This commit is contained in:
parent
3298458062
commit
488ccb3a9b
@ -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()
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user