← Documents Documentation/input/devices/xpad.rst GitHub 원문 ↗

Linux 6.18.37 · Input

Xpad - Linux USB Driver for Xbox Compatible Controllers

Xbox 호환 컨트롤러와 Dance Pad의 입력 매핑, USB 어댑터, 장치 식별과 시험 방법을 설명합니다.

Source pathDocumentation/input/devices/xpad.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

xpad.rst:1-234

`xpad`는 Xbox 세대와 타사 호환 패드를 USB input 장치로 제공합니다. 일반 패드의 D-pad는 축, dance pad의 D-pad는 동시 반대 방향을 보존하는 버튼으로 보고하며 unknown 장치는 module option이 형식을 정합니다.

문서 개요
항목내용
SourceDocumentation/input/devices/xpad.rst
분량234 source lines
Normal8 axes, 10 buttons
Dance pad6 axes, 14 buttons
Unknown option`dpad_to_buttons`, `triggers_to_buttons`
Original Xbox독자 5핀 to USB adapter
시험`modprobe xpad`, `modprobe joydev`, `jstest /dev/js0`

일반·댄스 패드와 연결 방식입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 =======================================================
2 xpad - Linux USB driver for Xbox compatible controllers
3 =======================================================
4
5 This driver exposes all first-party and third-party Xbox compatible
6 controllers. It has a long history and has enjoyed considerable usage
7 as Windows' xinput library caused most PC games to focus on Xbox
8 controller compatibility.
9
10 Due to backwards compatibility all buttons are reported as digital.
11 This only affects Original Xbox controllers. All later controller models
12 have only digital face buttons.
13
14 Rumble is supported on some models of Xbox 360 controllers but not of
15 Original Xbox controllers nor on Xbox One controllers. As of writing
16 the Xbox One's rumble protocol has not been reverse-engineered but in
17 the future could be supported.
18
19
20 Notes
21 =====
22
23 The number of buttons/axes reported varies based on 3 things:
24
25 - if you are using a known controller
26 - if you are using a known dance pad
27 - if using an unknown device (one not listed below), what you set in the
28 module configuration for "Map D-PAD to buttons rather than axes for unknown
29 pads" (module option dpad_to_buttons)
30
31 If you set dpad_to_buttons to N and you are using an unknown device
32 the driver will map the directional pad to axes (X/Y).
33 If you said Y it will map the d-pad to buttons, which is needed for dance
34 style games to function correctly. The default is Y.
35
36 dpad_to_buttons has no effect for known pads. A erroneous commit message
37 claimed dpad_to_buttons could be used to force behavior on known devices.
38 This is not true. Both dpad_to_buttons and triggers_to_buttons only affect
39 unknown controllers.
40
41
42 Normal Controllers
43 ------------------
44
45 With a normal controller, the directional pad is mapped to its own X/Y axes.
46 The jstest-program from joystick-1.2.15 (jstest-version 2.1.0) will report 8
47 axes and 10 buttons.
48
49 All 8 axes work, though they all have the same range (-32768..32767)
50 and the zero-setting is not correct for the triggers (I don't know if that
51 is some limitation of jstest, since the input device setup should be fine. I
52 didn't have a look at jstest itself yet).
53
54 All of the 10 buttons work (in digital mode). The six buttons on the
55 right side (A, B, X, Y, black, white) are said to be "analog" and
56 report their values as 8 bit unsigned, not sure what this is good for.
57
58 I tested the controller with quake3, and configuration and
59 in game functionality were OK. However, I find it rather difficult to
60 play first person shooters with a pad. Your mileage may vary.
61
62
63 Xbox Dance Pads
64 ---------------
65
66 When using a known dance pad, jstest will report 6 axes and 14 buttons.
67
68 For dance style pads (like the redoctane pad) several changes
69 have been made. The old driver would map the d-pad to axes, resulting
70 in the driver being unable to report when the user was pressing both
71 left+right or up+down, making DDR style games unplayable.
72
73 Known dance pads automatically map the d-pad to buttons and will work
74 correctly out of the box.
75
76 If your dance pad is recognized by the driver but is using axes instead
77 of buttons, see section 0.3 - Unknown Controllers
78
79 I've tested this with Stepmania, and it works quite well.
80
81
82 Unknown Controllers
83 -------------------
84
85 If you have an unknown Xbox controller, it should work just fine with
86 the default settings.
87
88 HOWEVER if you have an unknown dance pad not listed below, it will not
89 work UNLESS you set "dpad_to_buttons" to 1 in the module configuration.
90
91
92 USB adapters
93 ============
94
95 All generations of Xbox controllers speak USB over the wire.
96
97 - Original Xbox controllers use a proprietary connector and require adapters.
98 - Wireless Xbox 360 controllers require a 'Xbox 360 Wireless Gaming Receiver
99 for Windows'
100 - Wired Xbox 360 controllers use standard USB connectors.
101 - Xbox One controllers can be wireless but speak Wi-Fi Direct and are not
102 yet supported.
103 - Xbox One controllers can be wired and use standard Micro-USB connectors.
104
105
106
107 Original Xbox USB adapters
108 --------------------------
109
110 Using this driver with an Original Xbox controller requires an
111 adapter cable to break out the proprietary connector's pins to USB.
112 You can buy these online fairly cheap, or build your own.
113
114 Such a cable is pretty easy to build. The Controller itself is a USB
115 compound device (a hub with three ports for two expansion slots and
116 the controller device) with the only difference in a nonstandard connector
117 (5 pins vs. 4 on standard USB 1.0 connectors).
118
119 You just need to solder a USB connector onto the cable and keep the
120 yellow wire unconnected. The other pins have the same order on both
121 connectors so there is no magic to it. Detailed info on these matters
122 can be found on the net ([1]_, [2]_, [3]_).
123
124 Thanks to the trip splitter found on the cable you don't even need to cut the
125 original one. You can buy an extension cable and cut that instead. That way,
126 you can still use the controller with your Xbox, if you have one ;)
127
128
129
130 Driver Installation
131 ===================
132
133 Once you have the adapter cable, if needed, and the controller connected
134 the xpad module should be auto loaded. To confirm you can cat
135 /sys/kernel/debug/usb/devices. There should be an entry like those:
136
137 .. code-block:: none
138 :caption: dump from InterAct PowerPad Pro (Germany)
139
140 T: Bus=01 Lev=03 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
141 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs= 1
142 P: Vendor=05fd ProdID=107a Rev= 1.00
143 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
144 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=(none)
145 E: Ad=81(I) Atr=03(Int.) MxPS= 32 Ivl= 10ms
146 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl= 10ms
147
148 .. code-block:: none
149 :caption: dump from Redoctane Xbox Dance Pad (US)
150
151 T: Bus=01 Lev=02 Prnt=09 Port=00 Cnt=01 Dev#= 10 Spd=12 MxCh= 0
152 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
153 P: Vendor=0c12 ProdID=8809 Rev= 0.01
154 S: Product=XBOX DDR
155 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
156 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=xpad
157 E: Ad=82(I) Atr=03(Int.) MxPS= 32 Ivl=4ms
158 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl=4ms
159
160
161 Supported Controllers
162 =====================
163
164 For a full list of supported controllers and associated vendor and product
165 IDs see the xpad_device[] array\ [4]_.
166
167 As of the historic version 0.0.6 (2006-10-10) the following devices
168 were supported::
169
170 original Microsoft XBOX controller (US), vendor=0x045e, product=0x0202
171 smaller Microsoft XBOX controller (US), vendor=0x045e, product=0x0289
172 original Microsoft XBOX controller (Japan), vendor=0x045e, product=0x0285
173 InterAct PowerPad Pro (Germany), vendor=0x05fd, product=0x107a
174 RedOctane Xbox Dance Pad (US), vendor=0x0c12, product=0x8809
175
176 Unrecognized models of Xbox controllers should function as Generic
177 Xbox controllers. Unrecognized Dance Pad controllers require setting
178 the module option 'dpad_to_buttons'.
179
180 If you have an unrecognized controller please see 0.3 - Unknown Controllers
181
182
183 Manual Testing
184 ==============
185
186 To test this driver's functionality you may use 'jstest'.
187
188 For example::
189
190 > modprobe xpad
191 > modprobe joydev
192 > jstest /dev/js0
193
194 If you're using a normal controller, there should be a single line showing
195 18 inputs (8 axes, 10 buttons), and its values should change if you move
196 the sticks and push the buttons. If you're using a dance pad, it should
197 show 20 inputs (6 axes, 14 buttons).
198
199 It works? Voila, you're done ;)
200
201
202
203 Thanks
204 ======
205
206 I have to thank ITO Takayuki for the detailed info on his site
207 http://euc.jp/periphs/xbox-controller.ja.html.
208
209 His useful info and both the usb-skeleton as well as the iforce input driver
210 (Greg Kroah-Hartmann; Vojtech Pavlik) helped a lot in rapid prototyping
211 the basic functionality.
212
213
214
215 References
216 ==========
217
218 .. [1] http://euc.jp/periphs/xbox-controller.ja.html (ITO Takayuki)
219 .. [2] http://xpad.xbox-scene.com/
220 .. [3] http://www.markosweb.com/www/xboxhackz.com/
221 .. [4] https://elixir.bootlin.com/linux/latest/ident/xpad_device
222
223
224 Historic Edits
225 ==============
226
227 2002-07-16 - Marko Friedemann <mfr@bmx-chemnitz.de>
228 - original doc
229
230 2005-03-19 - Dominic Cerquetti <binary1230@yahoo.com>
231 - added stuff for dance pads, new d-pad->axes mappings
232
233 Later changes may be viewed with
234 'git log --follow Documentation/input/devices/xpad.rst'
235

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Xbox 호환 컨트롤러 범위와 unknown-device 옵션

1-41

`xpad`는 Microsoft 정품과 타사 Xbox 호환 컨트롤러를 Linux input 장치로 노출하는 USB 드라이버입니다. Windows `xinput`의 영향으로 PC 게임이 Xbox 호환성에 집중하면서 널리 사용됐습니다.

하위 호환성을 위해 모든 버튼을 digital로 보고합니다. 이 차이는 face button이 실제 analog인 Original Xbox 컨트롤러에만 영향을 주며 이후 모델은 face button 자체가 digital입니다.

문서 작성 시점에는 일부 Xbox 360 모델만 rumble을 지원하고 Original Xbox와 Xbox One은 지원하지 않습니다. Xbox One rumble protocol이 역공학되지 않았다는 역사적 상태가 기록돼 있습니다.

버튼·축 구성을 정하는 요소
장치 분류D-pad 처리옵션 영향
Known normal controller고유 X/Y axes`dpad_to_buttons` 무시
Known dance padButtons자동 적용
Unknown device, option NX/Y axes`dpad_to_buttons=0`
Unknown device, option YButtons`dpad_to_buttons=1`, 기본값

드라이버가 known controller, dance pad, unknown device를 구분합니다.

`dpad_to_buttons`와 `triggers_to_buttons`는 unknown controller에만 영향을 줍니다. Known pad의 동작을 강제할 수 있다는 과거 commit message는 잘못됐습니다. Unknown dance pad는 좌우 또는 상하 동시 누름을 보존하려면 `dpad_to_buttons=1`이 필요합니다.

xpad 구성 선택
USB vendor/product ID로 known device 조회Known normal이면 D-pad axes 사용Known dance pad이면 D-pad buttons 사용Unknown이면 `dpad_to_buttons` 기본 Y 또는 사용자 값 적용`triggers_to_buttons`도 unknown device에만 적용

USB ID와 module option으로 보고 형식을 정합니다.

=======================================================
xpad - Linux USB driver for Xbox compatible controllers
=======================================================

This driver exposes all first-party and third-party Xbox compatible
controllers. It has a long history and has enjoyed considerable usage
as Windows' xinput library caused most PC games to focus on Xbox
controller compatibility.

Due to backwards compatibility all buttons are reported as digital.
This only affects Original Xbox controllers. All later controller models
have only digital face buttons.

Rumble is supported on some models of Xbox 360 controllers but not of
Original Xbox controllers nor on Xbox One controllers. As of writing
the Xbox One's rumble protocol has not been reverse-engineered but in
the future could be supported.


Notes
=====

The number of buttons/axes reported varies based on 3 things:

- if you are using a known controller
- if you are using a known dance pad
- if using an unknown device (one not listed below), what you set in the
  module configuration for "Map D-PAD to buttons rather than axes for unknown
  pads" (module option dpad_to_buttons)

If you set dpad_to_buttons to N and you are using an unknown device
the driver will map the directional pad to axes (X/Y).
If you said Y it will map the d-pad to buttons, which is needed for dance
style games to function correctly. The default is Y.

dpad_to_buttons has no effect for known pads. A erroneous commit message
claimed dpad_to_buttons could be used to force behavior on known devices.
This is not true. Both dpad_to_buttons and triggers_to_buttons only affect
unknown controllers.

일반 컨트롤러와 Dance Pad 입력 매핑

42-91

일반 컨트롤러에서는 directional pad가 전용 X/Y axes로 매핑됩니다. Joystick 1.2.15의 `jstest` 2.1.0 기준으로 8개 축과 10개 버튼을 보고합니다.

일반 Xbox 컨트롤러
항목
Axes8
Buttons10
Axis range-32768~32767
Triggers같은 축 범위지만 `jstest`의 zero 표시가 부정확할 수 있음
Buttons A/B/X/Y/black/white호환성을 위해 digital 보고

원문에서 관찰한 축·버튼 수와 값 범위입니다.

Original Xbox의 오른쪽 여섯 버튼 A, B, X, Y, black, white는 장치가 8비트 unsigned analog 값으로 보고한다고 알려졌지만, 드라이버는 digital mode로 제공합니다. 문서 작성자는 Quake 3의 설정과 게임 동작을 확인했습니다.

Known Xbox dance pad는 `jstest`에서 6개 축과 14개 버튼을 보고합니다. D-pad를 axes로 표현하면 left+right 또는 up+down을 동시에 나타낼 수 없어 DDR 게임이 동작하지 않으므로, known dance pad는 자동으로 D-pad를 buttons에 매핑합니다.

Dance Pad와 일반 패드 비교
장치AxesButtonsD-pad
Normal controller810전용 X/Y axes
Known dance pad6144 buttons
Unknown dance pad설정에 따름설정에 따름`dpad_to_buttons=1` 필요

동시 방향 입력을 보존하기 위해 보고 수가 달라집니다.

Unknown Xbox controller는 기본 설정으로 대개 동작합니다. 그러나 목록에 없는 dance pad는 module configuration에서 `dpad_to_buttons=1`을 설정하지 않으면 제대로 동작하지 않습니다.

Dance Pad 동시 입력 보존
장치가 known dance pad인지 확인Known이면 D-pad 네 방향을 buttons로 자동 등록Unknown이면 `dpad_to_buttons=1` 설정Left+Right 및 Up+Down 동시 누름 시험Stepmania 같은 DDR 앱에서 입력 확인

축 표현의 한계를 buttons 매핑으로 해결합니다.

Normal Controllers
------------------

With a normal controller, the directional pad is mapped to its own X/Y axes.
The jstest-program from joystick-1.2.15 (jstest-version 2.1.0) will report 8
axes and 10 buttons.

All 8 axes work, though they all have the same range (-32768..32767)
and the zero-setting is not correct for the triggers (I don't know if that
is some limitation of jstest, since the input device setup should be fine. I
didn't have a look at jstest itself yet).

All of the 10 buttons work (in digital mode). The six buttons on the
right side (A, B, X, Y, black, white) are said to be "analog" and
report their values as 8 bit unsigned, not sure what this is good for.

I tested the controller with quake3, and configuration and
in game functionality were OK. However, I find it rather difficult to
play first person shooters with a pad. Your mileage may vary.


Xbox Dance Pads
---------------

When using a known dance pad, jstest will report 6 axes and 14 buttons.

For dance style pads (like the redoctane pad) several changes
have been made.  The old driver would map the d-pad to axes, resulting
in the driver being unable to report when the user was pressing both
left+right or up+down, making DDR style games unplayable.

Known dance pads automatically map the d-pad to buttons and will work
correctly out of the box.

If your dance pad is recognized by the driver but is using axes instead
of buttons, see section 0.3 - Unknown Controllers

I've tested this with Stepmania, and it works quite well.


Unknown Controllers
-------------------

If you have an unknown Xbox controller, it should work just fine with
the default settings.

HOWEVER if you have an unknown dance pad not listed below, it will not
work UNLESS you set "dpad_to_buttons" to 1 in the module configuration.

Xbox 세대별 USB 연결과 Original 어댑터

92-129

모든 세대의 Xbox 컨트롤러는 유선 구간에서 USB를 사용하지만 커넥터와 무선 방식이 다릅니다.

Xbox 세대별 연결
세대연결요구사항/상태
Original Xbox독자 5핀USB adapter 필요
Xbox 360 Wireless전용 무선Xbox 360 Wireless Gaming Receiver for Windows 필요
Xbox 360 Wired표준 USB직접 연결
Xbox One WirelessWi-Fi Direct문서 시점 미지원
Xbox One WiredMicro-USB표준 유선 연결

원문 작성 시점의 유선·무선 연결과 지원 상태입니다.

Original Xbox 컨트롤러는 독자 커넥터를 표준 USB로 바꾸는 adapter cable이 필요합니다. 컨트롤러 자체는 두 expansion slot과 controller device를 위한 3-port hub를 포함한 USB compound device이며, 표준 USB 1.0의 4핀 대신 5핀 커넥터를 쓴다는 점이 주된 차이입니다.

Original Xbox 어댑터 제작
작업설명
USB connector 납땜기존 케이블의 대응 신호 순서 사용
Yellow wire연결하지 않음
나머지 4 wires두 커넥터에서 같은 순서
권장 케이블원본 대신 trip splitter가 있는 extension cable 절단

독자 케이블을 USB로 변환할 때의 핵심 규칙입니다.

연장 케이블의 trip splitter를 사용하면 원래 컨트롤러 케이블을 자르지 않아 Xbox 본체에도 계속 사용할 수 있습니다. 상세 배선 참고 링크는 원문 references에 보존합니다.

Original Xbox를 USB에 연결
Original Xbox extension cable 준비연장 케이블을 절단해 독자 5핀 신호 노출Yellow wire는 절연해 미연결나머지 네 신호를 같은 순서로 USB connector에 납땜USB compound device가 열거되는지 확인

원본 보존을 포함한 adapter 제작 흐름입니다.

USB adapters
============

All generations of Xbox controllers speak USB over the wire.

- Original Xbox controllers use a proprietary connector and require adapters.
- Wireless Xbox 360 controllers require a 'Xbox 360 Wireless Gaming Receiver
  for Windows'
- Wired Xbox 360 controllers use standard USB connectors.
- Xbox One controllers can be wireless but speak Wi-Fi Direct and are not
  yet supported.
- Xbox One controllers can be wired and use standard Micro-USB connectors.



Original Xbox USB adapters
--------------------------

Using this driver with an Original Xbox controller requires an
adapter cable to break out the proprietary connector's pins to USB.
You can buy these online fairly cheap, or build your own.

Such a cable is pretty easy to build. The Controller itself is a USB
compound device (a hub with three ports for two expansion slots and
the controller device) with the only difference in a nonstandard connector
(5 pins vs. 4 on standard USB 1.0 connectors).

You just need to solder a USB connector onto the cable and keep the
yellow wire unconnected. The other pins have the same order on both
connectors so there is no magic to it. Detailed info on these matters
can be found on the net ([1]_, [2]_, [3]_).

Thanks to the trip splitter found on the cable you don't even need to cut the
original one. You can buy an extension cable and cut that instead. That way,
you can still use the controller with your Xbox, if you have one ;)


드라이버 자동 로드와 지원 장치 식별

130-182

필요한 adapter를 연결하면 `xpad` module이 자동으로 로드돼야 합니다. `/sys/kernel/debug/usb/devices`에서 USB descriptor와 interface의 `Driver=xpad` 여부를 확인할 수 있습니다.

문서의 USB 예제
장치VendorProductEndpoint/driver
InterAct PowerPad Pro (Germany)`05FD``107A`2 interrupt endpoints; 예제 `Driver=(none)`
RedOctane Xbox Dance Pad (US)`0C12``8809`2 interrupt endpoints; `Driver=xpad`

InterAct와 RedOctane dump의 식별 정보를 요약합니다.

전체 최신 지원 목록과 vendor/product ID는 소스의 `xpad_device[]` 배열을 기준으로 해야 합니다. 문서는 역사적 version 0.0.6에서 지원한 다섯 장치를 별도로 기록합니다.

역사적 xpad 0.0.6 지원 목록
장치VendorProduct
Original Microsoft XBOX controller (US)`0x045E``0x0202`
Smaller Microsoft XBOX controller (US)`0x045E``0x0289`
Original Microsoft XBOX controller (Japan)`0x045E``0x0285`
InterAct PowerPad Pro (Germany)`0x05FD``0x107A`
RedOctane Xbox Dance Pad (US)`0x0C12``0x8809`

2006-10-10 시점의 장치와 USB ID입니다.

인식되지 않은 일반 모델은 Generic Xbox controller로 동작해야 합니다. 인식되지 않은 Dance Pad는 `dpad_to_buttons`를 설정해야 합니다.

xpad 바인딩 확인
컨트롤러 또는 receiver를 USB에 연결`xpad` module 자동 로드 확인`/sys/kernel/debug/usb/devices` 읽기Vendor·ProdID로 known 목록 대조Interface의 `Driver=xpad` 확인Unknown dance pad면 D-pad option 적용

연결 후 USB ID와 driver binding을 확인하는 순서입니다.

Driver Installation
===================

Once you have the adapter cable, if needed, and the controller connected
the xpad module should be auto loaded. To confirm you can cat
/sys/kernel/debug/usb/devices. There should be an entry like those:

.. code-block:: none
   :caption: dump from InterAct PowerPad Pro (Germany)

    T:  Bus=01 Lev=03 Prnt=04 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
    D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs=  1
    P:  Vendor=05fd ProdID=107a Rev= 1.00
    C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
    I:  If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=(none)
    E:  Ad=81(I) Atr=03(Int.) MxPS=  32 Ivl= 10ms
    E:  Ad=02(O) Atr=03(Int.) MxPS=  32 Ivl= 10ms

.. code-block:: none
   :caption: dump from Redoctane Xbox Dance Pad (US)

    T:  Bus=01 Lev=02 Prnt=09 Port=00 Cnt=01 Dev#= 10 Spd=12  MxCh= 0
    D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
    P:  Vendor=0c12 ProdID=8809 Rev= 0.01
    S:  Product=XBOX DDR
    C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
    I:  If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=xpad
    E:  Ad=82(I) Atr=03(Int.) MxPS=  32 Ivl=4ms
    E:  Ad=02(O) Atr=03(Int.) MxPS=  32 Ivl=4ms


Supported Controllers
=====================

For a full list of supported controllers and associated vendor and product
IDs see the xpad_device[] array\ [4]_.

As of the historic version 0.0.6 (2006-10-10) the following devices
were supported::

 original Microsoft XBOX controller (US),    vendor=0x045e, product=0x0202
 smaller  Microsoft XBOX controller (US),    vendor=0x045e, product=0x0289
 original Microsoft XBOX controller (Japan), vendor=0x045e, product=0x0285
 InterAct PowerPad Pro (Germany),            vendor=0x05fd, product=0x107a
 RedOctane Xbox Dance Pad (US),              vendor=0x0c12, product=0x8809

Unrecognized models of Xbox controllers should function as Generic
Xbox controllers. Unrecognized Dance Pad controllers require setting
the module option 'dpad_to_buttons'.

If you have an unrecognized controller please see 0.3 - Unknown Controllers

수동 시험, 공헌과 변경 이력

183-234

드라이버는 `jstest`로 수동 시험합니다. `modprobe xpad`, `modprobe joydev`, `jstest /dev/js0` 순서로 실행합니다.

xpad 수동 시험 기대값
장치AxesButtons총 입력
Normal controller81018
Dance pad61420

장치 종류별 `jstest` 입력 수입니다.

스틱과 버튼을 움직일 때 한 줄의 값이 바뀌면 기본 기능이 동작합니다. 문서는 ITO Takayuki의 상세 자료, `usb-skeleton`, Greg Kroah-Hartman과 Vojtech Pavlik의 `iforce` input driver가 초기 구현에 도움을 줬다고 기록합니다.

역사적 편집
날짜작성자변경
2002-07-16Marko FriedemannOriginal document
2005-03-19Dominic CerquettiDance pad와 새 D-pad-to-axes mapping 추가
이후`git log --follow Documentation/input/devices/xpad.rst`후속 변경 확인

문서에 남은 주요 편집 이력입니다.

네 개의 reference에는 Xbox controller 배선 자료와 최신 `xpad_device` 소스 검색 링크가 포함됩니다. 현재 지원 여부는 역사적 목록보다 실제 커널 배열을 우선해야 합니다.

기능 시험
`modprobe xpad``modprobe joydev``jstest /dev/js0`Normal이면 8 axes·10 buttons 확인Dance pad이면 6 axes·14 buttons 확인모든 방향 동시 입력과 버튼 값 변화 시험

모듈부터 입력 수까지 확인하는 흐름입니다.

Manual Testing
==============

To test this driver's functionality you may use 'jstest'.

For example::

    > modprobe xpad
    > modprobe joydev
    > jstest /dev/js0

If you're using a normal controller, there should be a single line showing
18 inputs (8 axes, 10 buttons), and its values should change if you move
the sticks and push the buttons.  If you're using a dance pad, it should
show 20 inputs (6 axes, 14 buttons).

It works? Voila, you're done ;)



Thanks
======

I have to thank ITO Takayuki for the detailed info on his site
    http://euc.jp/periphs/xbox-controller.ja.html.

His useful info and both the usb-skeleton as well as the iforce input driver
(Greg Kroah-Hartmann; Vojtech Pavlik) helped a lot in rapid prototyping
the basic functionality.



References
==========

.. [1] http://euc.jp/periphs/xbox-controller.ja.html (ITO Takayuki)
.. [2] http://xpad.xbox-scene.com/
.. [3] http://www.markosweb.com/www/xboxhackz.com/
.. [4] https://elixir.bootlin.com/linux/latest/ident/xpad_device


Historic Edits
==============

2002-07-16 - Marko Friedemann <mfr@bmx-chemnitz.de>
 - original doc

2005-03-19 - Dominic Cerquetti <binary1230@yahoo.com>
 - added stuff for dance pads, new d-pad->axes mappings

Later changes may be viewed with
'git log --follow Documentation/input/devices/xpad.rst'