summaryrefslogtreecommitdiffstats
path: root/share/man/man4/joy.4
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-11-10 17:46:15 +0000
committerru <ru@FreeBSD.org>2000-11-10 17:46:15 +0000
commita6f5d950d860b642619fd71c1efc1875f906cc17 (patch)
treed290d38e2fe5b5c638aa4cd22f5612eb6b8cd6de /share/man/man4/joy.4
parent48c9ea08a6fa4c9c3d612d66b001208c85107546 (diff)
downloadFreeBSD-src-a6f5d950d860b642619fd71c1efc1875f906cc17.zip
FreeBSD-src-a6f5d950d860b642619fd71c1efc1875f906cc17.tar.gz
Avoid use of direct troff requests in mdoc(7) manual pages.
Diffstat (limited to 'share/man/man4/joy.4')
-rw-r--r--share/man/man4/joy.43
1 files changed, 2 insertions, 1 deletions
diff --git a/share/man/man4/joy.4 b/share/man/man4/joy.4
index 1c9180e..f43c049 100644
--- a/share/man/man4/joy.4
+++ b/share/man/man4/joy.4
@@ -35,9 +35,10 @@ The structure is defined in the header file as follows:
.Pp
Positions are typically in the range 0-2000.
.Ss One line perl example:
+.Bd -literal -compact
perl -e 'open(JOY,"/dev/joy0")||die;while(1)
-.br
{sysread(JOY,$x,16);@j=unpack("iiii",$x);print "@j\\n";sleep(1);}'
+.Ed
.Ss ioctl calls
Several ioctl() calls are also available.
They take an argument of
OpenPOWER on IntegriCloud