> jstest /dev/input/js0
input_player1_a_btn = 1 input_player1_b_btn = 2 input_player1_y_btn = 3 input_player1_x_btn = 0 input_player1_start_btn = 7 input_player1_select_btn = 6 input_player1_left_axis = -0 input_player1_right_axis = +0 input_player1_up_axis = -1 input_player1_down_axis = +1
### Pairing PS3 BlueTooth
> cd /opt/retropie/supplementary/ps3controller/ > sudo hciconfig hci0 reset > sudo ./sixpair
### RetroPie Configuration Files
Start config
> /boot/config.txt
Starup Script
> /etc/rc.local
RetroPie Setup Script
> ./retropie_setup.sh
Retroarch configuration file
> /opt/retropie/configs/all/retroarch.cfg
Joypad Autoconfig
> /opt/retropie/emulators/retroarch/configs/
PS3 configuration file
> /home/pi/.emulationstation/es_input.cfg
Sony PlayStation 3 Sixaxis controller buttons
4 = UP
6 = DOWN
7 = LEFT
5 = RIGHT
13 = A (or circle)
14 = B (or X)
3 = START
0 = SELECT
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_exit_emulator_btn = "16"
PS3 configuration file
> /home/pi/.emulationstation/es_input.cfg
<?xml version="1.0"?>
<inputList>
<inputConfig type="joystick" deviceName="Sony PLAYSTATION(R)3 Controller" deviceGUID="030000004c0500006802$
<input name="a" type="button" id="14" value="1" />
<input name="b" type="button" id="13" value="1" />
<input name="down" type="button" id="6" value="1" />
<input name="left" type="button" id="7" value="1" />
<input name="pagedown" type="button" id="8" value="1" />
<input name="pageup" type="button" id="10" value="1" />
<input name="right" type="button" id="5" value="1" />
<input name="select" type="button" id="0" value="1" />
<input name="start" type="button" id="3" value="1" />
<input name="up" type="button" id="4" value="1" />
</inputConfig>
<inputConfig type="joystick" deviceName="PLAYSTATION(R)3 Controller (04:76:6E:EC:04:FF)" deviceGUID="06000$
<input name="a" type="button" id="14" value="1" />
<input name="b" type="button" id="13" value="1" />
<input name="down" type="button" id="6" value="1" />
<input name="left" type="button" id="7" value="1" />
<input name="pagedown" type="button" id="8" value="1" />
<input name="pageup" type="button" id="10" value="1" />
<input name="right" type="button" id="5" value="1" />
<input name="select" type="button" id="0" value="1" />
<input name="start" type="button" id="3" value="1" />
<input name="up" type="button" id="4" value="1" />
</inputConfig>
</inputList>