summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1995-01-25 20:41:06 +0000
committerjmz <jmz@FreeBSD.org>1995-01-25 20:41:06 +0000
commitc931c201ef09a7eed22d3c15b14e7fcdfeb40da1 (patch)
treec97686c7f99e8b291a39ab99351e86753f88a9e3 /sys/i386/include
parentc00595ba565f6ddcedf271268dc6fa3714186f40 (diff)
downloadFreeBSD-src-c931c201ef09a7eed22d3c15b14e7fcdfeb40da1.zip
FreeBSD-src-c931c201ef09a7eed22d3c15b14e7fcdfeb40da1.tar.gz
ioctls for the joystick driver
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/joystick.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/i386/include/joystick.h b/sys/i386/include/joystick.h
new file mode 100644
index 0000000..2ba31a6
--- /dev/null
+++ b/sys/i386/include/joystick.h
@@ -0,0 +1,14 @@
+#ifndef _JOY_IOCTL_H_
+#define _JOY_IOCTL_H_
+
+#include <sys/types.h>
+#include <sys/ioctl.h>
+
+#define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */
+#define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */
+#define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */
+#define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on X-axis */
+#define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */
+#define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */
+
+#endif /* _JOY_IOCTL_H_ */
OpenPOWER on IntegriCloud