Compare commits

...

2 Commits

6 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# wii-u-gc-adapter
Driver version is 2.1.0.
Joystick (Wii U GameCube Adapter Port #) has 6 axes (X, Y, Z, Rx, Ry, Rz)
and 12 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnStart, (null), (null), (null), (null)).
Testing ... (interrupt to exit)
Axes: 0: -919 1: 0 2:-32767 3: 3715 4: 0 5:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off
Axes:
0,1: primary (left) stick X,Y
2: L (left bumper) (-32767 is default, ~25000 is up to the click, 32767 is pressed in all the way)
3,4: secondary (right, C) stick X,Y
5: R (right bumper)
Buttons:
0: A (bottom)
1: X (right)
2: Y (top)
3: B (left)
4: L click (after analog part)
5: R click (after analog part)
6: Z (R2)
7: start
8: d-pad up
9: d-pad down
10: d-pad left
11: d-pad right

View File

@ -0,0 +1,27 @@
# xboxdrv (default)
Driver version is 2.1.0.
Joystick (Xbox Gamepad (userspace driver)) has 8 axes (X, Y, Rx, Ry, Gas, Brake, Hat0X, Hat0Y)
and 11 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 0 3: 0 4:-32767 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off
Axes:
0,1: primary (left) stick X,Y
2,3: secondary (right) stick X,Y
4: RT (right bumper)
5: LT (left bumper) (-32767 is default, 32767 is pressed in all the way)
6,7: d-pad X,Y (digital, only ever min/max values or 0)
Buttons:
0: A (bottom)
1: B (right)
2: X (left)
3: Y (top)
4: LB
5: RB
6: back
7: start
8: guide (center XBox button)
9: primary (left) stick press in (L3/TL)
10: secondary (right) stick press in (R3/TR)

View File

@ -0,0 +1,27 @@
# xboxdrv --mimic-xpad
Driver version is 2.1.0.
Joystick (Microsoft X-Box 360 pad) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
and 11 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 0 3: 0 4:-32767 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off
Axes:
0,1: primary (left) stick X,Y
2: LT (left bumper) (-32767 is default, 32767 is pressed in all the way)
3,4: secondary (right) stick X,Y
5: RT (right bumper)
6,7: d-pad X,Y (digital, only ever min/max values or 0)
Buttons:
0: A (bottom)
1: B (right)
2: X (left)
3: Y (top)
4: LB
5: RB
6: back
7: start
8: guide (center XBox button)
9: primary (left) stick press in (L3/TL)
10: secondary (right) stick press in (R3/TR)

View File

@ -0,0 +1,30 @@
# xboxdrv --mimic-xpad-wireless
Driver version is 2.1.0.
Joystick (Xbox 360 Wireless Receiver) has 6 axes (X, Y, Z, Rx, Ry, Rz)
and 15 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR, (null), (null), (null), (null)).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off
Axes:
0,1: primary (left) stick X,Y
2: LT (left bumper) (-32767 is default, 32767 is pressed in all the way)
3,4: secondary (right) stick X,Y
5: RT (right bumper)
Buttons:
0: A (bottom)
1: B (right)
2: X (left)
3: Y (top)
4: LB
5: RB
6: back
7: start
8: guide (center XBox button)
9: primary (left) stick press in (L3/TL)
10: secondary (right) stick press in (R3/TR)
11: d-pad left
12: d-pad right
13: d-pad up
14: d-pad down

31
button_maps/xbox360.xpad Normal file
View File

@ -0,0 +1,31 @@
# Kernel driver (xpad)
Driver version is 2.1.0.
Joystick (Xbox 360 Wireless Receiver (XBOX)) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
and 15 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR, (null), (null), (null), (null)).
Testing ... (interrupt to exit)
Axes: 0: -5122 1: -505 2:-32767 3: -2525 4: -2302 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off
Axes:
0,1: primary (left) stick X,Y
2: LT (left bumper) (-32767 is default, 32767 is pressed in all the way)
3,4: secondary (right) stick X,Y
5: RT (right bumper)
6,7: d-pad X,Y (digital, only ever min/max values or 0)
Buttons:
0: A (bottom)
1: B (right)
2: X (left)
3: Y (top)
4: LB
5: RB
6: back
7: start
8: guide (center XBox button)
9: primary (left) stick press in (L3/TL)
10: secondary (right) stick press in (R3/TR)
11: d-pad left
12: d-pad right
13: d-pad up
14: d-pad down

4
gcn Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/sh
# Select a GameCube controller connected via wii-u-gc-adapter by pressing a
# button on it. Make that controller act like an XBox 360 controller.
xboxdrv --evdev "$(identify_evdev.py)" --evdev-keymap "KEY_#304=a,KEY_#313=rt,KEY_#546=dl,KEY_#308=b,KEY_#310=lb,KEY_#545=dd,KEY_#315=start,KEY_#311=rb,KEY_#307=y,KEY_#305=x,KEY_#544=du,KEY_#547=dr" --evdev-absmap "ABS_RZ=rt,ABS_RY=y2,ABS_RX=x2,ABS_Z=lt,ABS_Y=y1,ABS_X=x1" --axismap "-rt=rt,-y2=y2,-lt=lt,-y1=y1" --mimic-xpad --silent