default irix device
[sball] / src / sball.h
1 #ifndef SBALL_H_
2 #define SBALL_H_
3
4 struct sball;
5
6 struct sball *sball_open(const char *dev);
7 void sball_close(struct sball *sb);
8 int sball_fd(struct sball *sb);
9 int sball_read(struct sball *sb);
10
11 int sball_axis(struct sball *sb, int axis);
12 unsigned int sball_buttons(struct sball *sb);
13 int sball_num_buttons(struct sball *sb);
14
15 void sball_button_test(void);
16
17 #endif  /* SBALL_H_ */