G-PAD XYBA not detected
-
Just bought a couple of these gamepads for RetroPie based on user reviews online. Trouble is, they don't seem to be pairing. I just get the "No devices were found" message. I'm pressing A + (home) to start the pairing process on the controller and the "Register bluetooth device" from the config screen. I'm using RetroPie 4.1 on a Pi3. I also turned the 8bitdo hack off (per a customer review - though I tried it with it as well).
-
OK, I've got it to pair, but when I try to "Configure Input", it doesn't recognize it.
-
For anyone else that comes across this, I had to reboot a couple times, and even then it wouldn't show up each time. Nonetheless, once paired it would work fine. It detects it as "Gamepad" though, which I'm guessing is because it doesn't have native support (more on that in a bit).
However, there is more that needed to be done.
-
Had to create a udev for the "Gamepad". Subsequent pairings would piggyback off this, presumably becuase they are all gamepads of type "Gamepad".
-
Had to reboot for the UI to detect it.
-
After running "Configure Input" (following reboot in step 2), while the RetroPie inputs were mapped properly, none of the games were. I had to manually edit the /opt/retropie/configs/all/retroarch-joypads/Gamepad.cfg file to the following:
input_device = "Gamepad"
input_driver = "udev"
input_start_btn = "14"
input_exit_emulator_btn = "14"
input_select_btn = "13"
input_enable_hotkey_btn = "13"
input_a_btn = "4"
input_b_btn = "3"
input_x_btn = "7"
input_y_btn = "6"
input_l_btn = "9"
input_r_btn = "10"
input_l2_btn = "11"
input_r2_btn = "12"
input_l3_btn = "16"
input_r3_btn = "17"
input_up_btn = "h0up"
input_down_btn = "h0down"
input_left_btn = "h0left"
input_right_btn = "h0right"
input_l_x_minus_axis = "-0"
input_l_x_plus_axis = "+0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_minus_axis = "-2"
input_r_x_plus_axis = "+2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"
input_reset_btn = "3"
input_load_state_btn = "9"
input_save_state_btn = "10"
input_menu_toggle_btn = "7"
input_state_slot_increase_btn = "h0right"
input_state_slot_decrease_btn = "h0left"
After all this, it worked. When I paired a second gamepad I didn't have to run "Configure Input" and it picked up the manual config I'd created. Is there a reason the manual edit was necessary? Is this something that can be fixed in a future release?
-
-
This config worked for everything but the N64 emulator for me, so to get that working for the XYBA controller, edit /opt/retropie/configs/n64/InputAutoCfg.ini and add this entry for GamePad:
; GamePad_START
[GamePad]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 4096,4096
AnalogPeak = 32768,32768
DPad U = hat(0 Up)
DPad D = hat(0 Down)
DPad L = hat(0 Left)
DPad R = hat(0 Right)
A Button = button(0)
B Button = button(1)
Start = button(11)
L Trig = button(6)
R Trig = button(7)
Z Trig = button(3)
C Button U = axis(2-)
C Button D = axis(2+)
C Button L = axis(3-)
C Button R = axis(3+)
Y Axis = axis(1-,1+)
X Axis = axis(0-,0+)
Mempak switch = button(16)
Rumblepak switch = button(17)
; GamePad_END -
How is the process for creating the controllers udev? I'm unfamiliar if you care to share.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.