diff options
author | jmz <jmz@FreeBSD.org> | 1995-02-22 23:34:58 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1995-02-22 23:34:58 +0000 |
commit | 7ef28cc37085f27cc0d0a2721f79dcd9f74ccaa5 (patch) | |
tree | 159d7620e33456cefc4017f1011b42604b72ba0b /sys/sys/joystick.h | |
parent | e55d5d3716f96764f85c283761adf6d7f778a23f (diff) | |
download | FreeBSD-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/sys/joystick.h')
-rw-r--r-- | sys/sys/joystick.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/joystick.h b/sys/sys/joystick.h index 2ba31a6..d070ac0 100644 --- a/sys/sys/joystick.h +++ b/sys/sys/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 */ |