hondalex
Posts: 2
Joined: Tue Feb 12, 2013 7:25 pm

RetroPie D-pad and left Joystick Xbox Controller

Tue Feb 12, 2013 7:38 pm

Hello All!

Thanks so much for all the input that you've put on here! I've loved learning about using the RasPi and I love that I'm able to use RetroPie for my nostalgic enjoyment.

I have a question though, I have my RetroPie working fine and I've done what I needed to do to setup the XBox 360 Controller (https://github.com/petrockblog/RetroPie ... ontroller) and it's working beautifully with my 2 controllers.

My question is, how do I need to set it up on the retroarch.cfg (/home/pi/RetroPie/configs/all) so I can use both the d-pad and the joystick? If I could get that working for the NES and SNES it would be great! I love the dpad for Mario Bros and stuff but I need the joystick for the fighting games.

Any help is much appreciated!

hondalex
Posts: 2
Joined: Tue Feb 12, 2013 7:25 pm

Re: RetroPie D-pad and left Joystick Xbox Controller

Fri Feb 15, 2013 3:09 pm

Well, I kind of figured it out. I have another controller installed before the Xbox one and it was working. So when I plugged in the Xbox one both the D-Pad and left Joystick were working but the buttons weren't matching. So I just fixed the buttons to match the mapping of the Xbox one and voila! It works! Now you can play with both of them on the NES and SNES!

My mappings (this should be all after the input_player1_joypad_index = "0" on the retroarch.cfg under /RetroPie/configs/all):

Code: Select all

input_player1_left_axis = "-0"
input_player1_up_axis = "-1"
input_player1_right_axis = "+0"
input_player1_down_axis = "+1"
input_player1_l2_btn = "nul"
input_player1_r2_btn = "nul"
input_player1_l3_btn = "nul"
input_player1_r3_btn = "nul"
input_player1_a_btn = "1"
input_player1_b_btn = "0"
input_player1_x_btn = "3"
input_player1_y_btn = "2"
input_player1_l_btn = "4"
input_player1_r_btn = "5"
input_player1_l2_btn = "6"
input_player1_r2_btn = "7"
input_player1_l3_btn = "11"
input_player1_r3_btn = "12"
input_player1_start_btn = "9"
input_player1_select_btn = "8"
input_player1_left_btn = "h0left"
input_player1_up_btn = "h0up"
input_player1_right_btn = "h0right"
input_player1_down_btn = "h0down"
input_player1_l_x_plus_axis = "+0"
input_player1_l_y_plus_axis = "+1"
input_player1_l_x_minus_axis = "-0"
input_player1_l_y_minus_axis = "-1"
input_player1_r_x_plus_axis = "+2"
input_player1_r_y_plus_axis = "+3"
input_player1_r_x_minus_axis = "-2"
input_player1_r_y_minus_axis = "-3"
Hope this helps someone in the future!

Return to “Gaming”