mirror of
https://github.com/bgiraudr/Adoranda.git
synced 2024-06-05 19:21:25 +02:00
14 lines
236 B
C
14 lines
236 B
C
#include <gint/keyboard.h>
|
|
#include "util.h"
|
|
|
|
void wait_for_input(int input) {
|
|
int buffer = 1;
|
|
while(1) {
|
|
clearevents();
|
|
if(keydown(input)) {
|
|
if(buffer) buffer = 0;
|
|
else break;
|
|
}
|
|
while(keydown(input)) clearevents();
|
|
}
|
|
} |