motorhead
Participant
Post count: 65

Hi! I got 2 ps3 controllers working using USB following this tutorial:

You can use my ps3 config file, unzip and leave it here:

/home/pi/RetroPie/emulators/RetroArch/configs/

Then you need to modify ES_input.cfg in /home/pi/.emulationstation, add this:

<inputConfig type=”joystick” deviceName=”Sony PLAYSTATION(R)3 Controller”>
<input name=”a” type=”button” id=”13″ value=”1″ />
<input name=”b” type=”button” id=”14″ value=”1″ />
<input name=”menu” type=”button” id=”16″ value=”1″ />
<input name=”pagedown” type=”button” id=”10″ value=”1″ />
<input name=”pageup” type=”button” id=”11″ value=”1″ />
<input name=”select” type=”button” id=”0″ value=”1″ />
<input name=”down” type=”button” id=”6″ value=”1″ />
<input name=”left” type=”button” id=”7″ value=”-1″ />
<input name=”right” type=”button” id=”5″ value=”1″ />
<input name=”up” type=”button” id=”4″ value=”-1″ />
</inputConfig>

The last step is to modify retropie.cfg at /home/pi/RetroPie/configs/all, add this:

input_player1_joypad_index = “0”
input_player1_a_btn = “13”
input_player1_b_btn = “14”
input_player1_x_btn = “12”
input_player1_y_btn = “15”
input_player1_l_btn = “10”
input_player1_r_btn = “11”
input_player1_l2_btn = “8”
input_player1_r2_btn = “9”
input_player1_l3_btn = “1”
input_player1_r3_btn = “2”
input_player1_start_btn = “3”
input_player1_select_btn = “0”
input_player1_left_btn = “7”
input_player1_up_btn = “4”
input_player1_right_btn = “5”
input_player1_down_btn = “6”
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_x_minus_axis = “-3”

input_player2_joypad_index = “1”
input_player2_a_btn = “13”
input_player2_b_btn = “14”
input_player2_x_btn = “12”
input_player2_y_btn = “15”
input_player2_l_btn = “10”
input_player2_r_btn = “11”
input_player2_l2_btn = “8”
input_player2_r2_btn = “9”
input_player2_l3_btn = “1”
input_player2_r3_btn = “2”
input_player2_start_btn = “3”
input_player2_select_btn = “0”
input_player2_left_btn = “7”
input_player2_up_btn = “4”
input_player2_right_btn = “5”
input_player2_down_btn = “6”
input_player2_l_x_plus_axis = “+0”
input_player2_l_y_plus_axis = “+1”
input_player2_l_x_minus_axis = “-0”
input_player2_l_y_minus_axis = “-1”
input_player2_r_x_plus_axis = “+2”
input_player2_r_y_plus_axis = “+3”
input_player2_r_x_minus_axis = “-2”
input_player2_r_x_minus_axis = “-3”