summaryrefslogtreecommitdiffstats
path: root/share/man/man4/joy.4
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-03-03 14:05:08 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-03-03 14:05:08 +0000
commit88dd9b4faa11f5f0aa21cbd43fb72503a67b4229 (patch)
tree69062af71195d869d2c940c1869ddf1621cbabfb /share/man/man4/joy.4
parent1b7dce690e9fb2a298fb1e3bedc8186e71b877a3 (diff)
downloadFreeBSD-src-88dd9b4faa11f5f0aa21cbd43fb72503a67b4229.zip
FreeBSD-src-88dd9b4faa11f5f0aa21cbd43fb72503a67b4229.tar.gz
Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
Diffstat (limited to 'share/man/man4/joy.4')
-rw-r--r--share/man/man4/joy.49
1 files changed, 6 insertions, 3 deletions
diff --git a/share/man/man4/joy.4 b/share/man/man4/joy.4
index 039542c..c04d8db 100644
--- a/share/man/man4/joy.4
+++ b/share/man/man4/joy.4
@@ -16,7 +16,8 @@ the PC joystick.
This device may be opened by only one process at a time.
.Pp
The joystick status is read from a structure via a read()
-call. The structure is defined in the header file as follows:
+call.
+The structure is defined in the header file as follows:
.Pp
.Bd -literal -offset indent
struct joystick {
@@ -33,12 +34,14 @@ perl -e 'open(JOY,"/dev/joy0")||die;while(1)
.br
{sysread(JOY,$x,16);@j=unpack("iiii",$x);print "@j\\n";sleep(1);}'
.Ss ioctl calls
-Several ioctl() calls are also available. They take an argument of
+Several ioctl() calls are also available.
+They take an argument of
type int *
.Bl -tag -width JOY_SET_X_OFFSET
.It Dv JOY_SETTIMEOUT Fa int *limit
Set the time limit (in microseconds) for reading the joystick
-status. Setting a value
+status.
+Setting a value
too small may prevent to get correct values for the positions (which
are then set to -2147483648), however this can be useful if one is
only interested by the buttons status.
OpenPOWER on IntegriCloud