Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | #include <stdio.h> |
2 | ||
3 | int main() { | |
4 | char inbuf[3]; | |
5 | FILE *mice = fopen("/dev/input/mice", "rb"); | |
6 | if(!mice) exit(1); | |
7 | ||
8 | while(1) { | |
9 | printf(" %b", getc(mice)); | |
10 | printf(" %d", getc(mice)); | |
11 | printf(" %d\n", getc(mice)); | |
12 | } | |
13 | ||
14 | } |