1 /* $OpenBSD: joystick.h,v 1.5 2005/01/09 16:39:55 jmc Exp $ */ 2 /* $NetBSD: joystick.h,v 1.1 1996/03/27 19:18:56 perry Exp $ */ 3 4 #ifndef _JOY_IOCTL_H_ 5 #define _JOY_IOCTL_H_ 6 7 #include <sys/ioccom.h> 8 9 struct joystick { 10 int x; 11 int y; 12 int b1; 13 int b2; 14 }; 15 16 #define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */ 17 #define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */ 18 #define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */ 19 #define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on Y-axis */ 20 #define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */ 21 #define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */ 22 23 #endif /* _JOY_IOCTL_H_ */ 24