projects
/
oftp
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4b36e4a38947510c13be9281988f39bc1921b12e
[oftp]
/
src
/
dos
/
input.c
1
#include <conio.h>
2
#include "input.h"
3
4
int init_input(void)
5
{
6
return 0;
7
}
8
9
void cleanup_input(void)
10
{
11
}
12
13
int poll_input(union event *ev)
14
{
15
if(have_input()) {
16
ev->type = EV_KEY;
17
ev->key.key = getch();
18
return 1;
19
}
20
return 0;
21
}
22
23
int have_input(void)
24
{
25
return kbhit();
26
}