expanded the build instructions in the README
[dosdemo] / src / sball.h
1 #ifndef SBALL_H_\r
2 #define SBALL_H_\r
3 \r
4 enum {\r
5         SBALL_EV_NONE,\r
6         SBALL_EV_MOTION,\r
7         SBALL_EV_BUTTON\r
8 };\r
9 \r
10 struct sball_event_motion {\r
11         int type;\r
12         int motion[6];\r
13 };\r
14 \r
15 struct sball_event_button {\r
16         int type;\r
17         int id;\r
18         int pressed;\r
19         unsigned int state;\r
20 };\r
21 \r
22 typedef union sball_event {\r
23         int type;\r
24         struct sball_event_motion motion;\r
25         struct sball_event_button button;\r
26 } sball_event;\r
27 \r
28 int sball_init(void);\r
29 void sball_shutdown(void);\r
30 \r
31 int sball_getdev(void);\r
32 \r
33 int sball_pending(void);\r
34 int sball_getevent(sball_event *ev);\r
35 \r
36 #endif  /* SBALL_H_ */\r