summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/joystick.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-16 08:25:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-16 08:25:12 +0000
commit063928ca0f66cdb779c3d891eed893aac5cf55d9 (patch)
tree456f5c7d30358f97b88e4e9b8f8643f1e2d3d493 /sys/arch/i386/include/joystick.h
parent8ef9eb7421dd5c8255b104ce20cd30a0b2fc45df (diff)
add the freebsd joystick driver; converted by matthieu@abel.laas.fr;
netbsd pr#1916
Diffstat (limited to 'sys/arch/i386/include/joystick.h')
-rw-r--r--sys/arch/i386/include/joystick.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/arch/i386/include/joystick.h b/sys/arch/i386/include/joystick.h
new file mode 100644
index 00000000000..b73fa5c91d7
--- /dev/null
+++ b/sys/arch/i386/include/joystick.h
@@ -0,0 +1,21 @@
+#ifndef _JOY_IOCTL_H_
+#define _JOY_IOCTL_H_
+
+#include <sys/types.h>
+#include <sys/ioctl.h>
+
+struct joystick {
+ int x;
+ int y;
+ int b1;
+ int b2;
+};
+
+#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_ */