Homepage › Forums › RetroPie Project › Controller Configuration in RetroPie › 2 x joystick config › Reply To: 2 x joystick config
@andrewvalentine
No problem!
I understand the logic for the auto config files like you mentioned but since I only use a Xin-Mo with my setup, I’ve not really delved into utilising them I’m afraid.
If it helps, here are the steps that I took to set up my controls once I had added the entry to cmdline.txt:
Quit to the terminal using F4
Type “cd /dev/input” to change to that directory
Type “ls” and it will show the directory contents
Look for js0, js1, js2, etc.
Type “jstest js0”
Press buttons to see what they are identified as and make a list/diagram, press Ctrl-C to quit jstest
Type “sudo nano /opt/retropie/configs/all/retroarch.cfg”
Go to the end of this file and add custom controls using the list/diagram such as:
input_enable_hotkey_btn = “9”
input_pause_toggle_btn = “7”
input_exit_emulator_btn = “10”
input_menu_toggle_btn = “6”
input_volume_up_axis = “-1”
input_volume_down_axis = “+1”
input_audio_mute_btn = “8”
input_player1_joypad_index = “1”
input_player1_up_axis = “-1”
input_player1_down_axis = “+1”
input_player1_left_axis = “-0”
input_player1_right_axis = “+0”
input_player1_a_btn = “1”
input_player1_b_btn = “0”
input_player1_x_btn = “2”
input_player1_y_btn = “3”
input_player1_l_btn = “4”
input_player1_r_btn = “5”
input_player1_select_btn = “6”
input_player1_start_btn = “7”
input_player2_joypad_index = “0”
input_player2_up_axis = “-1”
input_player2_down_axis = “+1”
input_player2_left_axis = “-0”
input_player2_right_axis = “+0”
input_player2_a_btn = “1”
input_player2_b_btn = “0”
input_player2_x_btn = “2”
input_player2_y_btn = “3”
input_player2_l_btn = “4”
input_player2_r_btn = “5”
input_player2_select_btn = “6”
input_player2_start_btn = “7”
input_player1_joypad_index = “1” should refer to the js name found previously
Press Ctrl-X to quit and make sure to press Y to save
Type “emulationstation” to get back to the familiar menus and try one of the retroarch emulators!
Hope this helps! Maybe not the clearest steps but if you need any more help just ask!