joystick.h revision 1.1 1 1.1 thorpej /* $NetBSD: joystick.h,v 1.1 2002/02/10 01:57:24 thorpej Exp $ */
2 1.1 thorpej
3 1.1 thorpej #ifndef _JOY_IOCTL_H_
4 1.1 thorpej #define _JOY_IOCTL_H_
5 1.1 thorpej
6 1.1 thorpej #include <sys/types.h>
7 1.1 thorpej #include <sys/ioctl.h>
8 1.1 thorpej
9 1.1 thorpej struct joystick {
10 1.1 thorpej int x;
11 1.1 thorpej int y;
12 1.1 thorpej int b1;
13 1.1 thorpej int b2;
14 1.1 thorpej };
15 1.1 thorpej
16 1.1 thorpej #define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */
17 1.1 thorpej #define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */
18 1.1 thorpej #define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */
19 1.1 thorpej #define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on X-axis */
20 1.1 thorpej #define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */
21 1.1 thorpej #define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */
22 1.1 thorpej
23 1.1 thorpej #endif /* _JOY_IOCTL_H_ */
24