xref: /openbsd/share/man/man4/ujoy.4 (revision 76d0caae)
1.\"	$OpenBSD: ujoy.4,v 1.2 2021/01/27 14:58:06 jmc Exp $
2.\"
3.\" Copyright (c) 2020 Thomas Frohwein	<thfr@openbsd.org>
4.\" Copyright (c) 2020 Bryan Steele	<brynet@openbsd.org>
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd $Mdocdate: January 27 2021 $
19.Dt UJOY 4
20.Os
21.Sh NAME
22.Nm ujoy
23.Nd USB joystick/gamecontroller
24.Sh SYNOPSIS
25.Cd "ujoy* at uhidev?"
26.Sh DESCRIPTION
27The
28.Nm
29driver provides support for USB joysticks and other gamecontrollers.
30They are Human Interface Devices (HID) which can be accessed via the
31.Pa /dev/ujoy/N
32interface.
33.Pp
34The driver is compatible with
35.Xr read 2 ,
36and a subset of
37.Xr ioctl 2
38operations of the generic
39.Xr uhid 4
40device.
41.Sh FILES
42.Bl -tag -width /dev/ujoy/* -compact
43.It Pa /dev/ujoy/*
44.El
45.Sh SEE ALSO
46.Xr uhid 4 ,
47.Xr uhidev 4 ,
48.Xr usb 4
49.Sh HISTORY
50The
51.Nm
52driver first appeared in
53.Ox 6.9 .
54