summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/joystick.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/include/joystick.h')
-rw-r--r--sys/i386/include/joystick.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/i386/include/joystick.h b/sys/i386/include/joystick.h
index 2ba31a6..d070ac0 100644
--- a/sys/i386/include/joystick.h
+++ b/sys/i386/include/joystick.h
@@ -4,6 +4,13 @@
#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 */
OpenPOWER on IntegriCloud