1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
<table class="head">
<tr>
<td class="head-ltitle">HGAME(4)</td>
<td class="head-vol">Device Drivers Manual</td>
<td class="head-rtitle">HGAME(4)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">hgame</code> — <span class="Nd">generic
HID gamepad, joystick, and controller evdev driver</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="Cd">device hgame</code>
<br/>
<code class="Cd">device hid</code>
<br/>
<code class="Cd">device hidbus</code>
<br/>
<code class="Cd">device hidmap</code>
<br/>
<code class="Cd">device evdev</code></p>
<p class="Pp">In <a class="Xr">sysctl.conf(5)</a>:
<br/>
<code class="Cd">dev.hgame.X.debug</code></p>
<p class="Pp">In <a class="Xr">loader.conf(5)</a>:
<br/>
<code class="Cd">hw.hid.hgame.debug</code>
<br/>
<code class="Cd">hgame_load</code></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">hgame</code> driver supports generic game
controllers that attach to the HID transport backend, and presents them to
applications over the <b class="Sy">evdev</b> interface.</p>
<p class="Pp">If the appropriate hardware is detected, the driver will be loaded
automatically by <a class="Xr">devmatch(8)</a>. To load the driver manually
at boot time, set the <var class="Va">hgame_load</var> variable to
<var class="Ar">YES</var> at the <a class="Xr">loader(8)</a> prompt, or add
it to <a class="Xr">loader.conf(5)</a>.</p>
<p class="Pp" id="games">To give user applications access to the game
controllers, allow user access to the
<span class="Pa">/dev/input/event*</span> nodes with inclusion of user in
the <a class="permalink" href="#games"><i class="Em">games</i></a>
group.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="HARDWARE"><a class="permalink" href="#HARDWARE">HARDWARE</a></h1>
<p class="Pp">The <code class="Nm">hgame</code> driver supports HID gamepads,
joysticks, and controllers such as:</p>
<p class="Pp"></p>
<ul class="Bl-bullet Bl-compact">
<li>8bitdo USB Wireless Adapter 2</li>
</ul>
</section>
<section class="Sh">
<h1 class="Sh" id="SYSCTL_VARIABLES"><a class="permalink" href="#SYSCTL_VARIABLES">SYSCTL
VARIABLES</a></h1>
<p class="Pp">The following variable is available as both
<a class="Xr">sysctl(8)</a> variable and <a class="Xr">loader(8)</a>
tunable:</p>
<dl class="Bl-tag">
<dt id="dev.hgame.X.debug"><var class="Va">dev.hgame.X.debug</var></dt>
<dd>Debug output level, where 0 is debugging disabled and larger values
increase debug message verbosity. Default is 0.</dd>
</dl>
<p class="Pp">Its default value is set with <a class="Xr">loader(8)</a>
tunable:</p>
<dl class="Bl-tag">
<dt id="hw.hid.hgame.debug"><var class="Va">hw.hid.hgame.debug</var></dt>
<dd style="width: auto;"> </dd>
</dl>
</section>
<section class="Sh">
<h1 class="Sh" id="FILES"><a class="permalink" href="#FILES">FILES</a></h1>
<dl class="Bl-tag Bl-compact">
<dt><span class="Pa">/dev/input/event*</span></dt>
<dd>input event device (<b class="Sy">evdev</b>) node</dd>
</dl>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr">iichid(4)</a>, <a class="Xr">ps4dshock(4)</a>,
<a class="Xr">usbhid(4)</a>, <a class="Xr">xb360gp(4)</a>,
<a class="Xr">devfs.rules(5)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">The <code class="Nm">hgame</code> driver first appeared in
<span class="Ux">FreeBSD 13.0</span>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp">The <code class="Nm">hgame</code> driver was written by
<span class="An">Val Packett</span>
<<a class="Mt" href="mailto:val@packett.cool">val@packett.cool</a>>.</p>
<p class="Pp">This manual page was written by <span class="An">Vladimir
Kondratyev</span>
<<a class="Mt" href="mailto:wulf@FreeBSD.org">wulf@FreeBSD.org</a>>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">November 30, 2025</td>
<td class="foot-os">FreeBSD 15.0</td>
</tr>
</table>
|