summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1995-02-22 23:34:58 +0000
committerjmz <jmz@FreeBSD.org>1995-02-22 23:34:58 +0000
commit7ef28cc37085f27cc0d0a2721f79dcd9f74ccaa5 (patch)
tree159d7620e33456cefc4017f1011b42604b72ba0b /sys/i386/include
parente55d5d3716f96764f85c283761adf6d7f778a23f (diff)
downloadFreeBSD-src-7ef28cc37085f27cc0d0a2721f79dcd9f74ccaa5.zip
FreeBSD-src-7ef28cc37085f27cc0d0a2721f79dcd9f74ccaa5.tar.gz
Put the joystick status in a struct {int x, y, b1, b2;} rather than in a
dummy array of 4 integers. Declare the struct in the header file and update the man page.
Diffstat (limited to 'sys/i386/include')
-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