Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › "Couldn't open joystick #0" when opening retroarch-joyconfig › Reply To: "Couldn't open joystick #0" when opening retroarch-joyconfig
Hmm. Further progress but still not working. I have been scouring the forums for similar problems and have ran:
jstest /dev/input/js0
It wouldn’t let me. So I tried
jstest /dev/input/js1
Out of courisotiy and it showed my wired controller!
So I bastardised someone elses retroarch.cfg and manually entered my button numbers and ended up with this:
input_player1_joypad_index = "1"
input_player1_a_btn = "0"
input_player1_b_btn = "1"
input_player1_y_btn = "2"
input_player1_x_btn = "3"
input_player1_start_btn = "9"
input_player1_select_btn = "8"
input_player1_l_btn = "4"
input_player1_r_btn = "5"
input_player1_up_axis = "-1"
input_player1_down_axis = "+1"
input_player1_left_axis = "-0"
input_player1_right_axis = "+0"
input_player1_l2_btn = "6"
input_player1_r2_btn = "7"
input_player1_l3_btn = "11"
input_player1_r3_btn = "12"
input_player2_joypad_index = "2"
input_player2_a_btn = "0"
input_player2_b_btn = "1"
input_player2_y_btn = "3"
input_player2_x_btn = "2"
input_player2_start_btn = "7"
input_player2_select_btn = "6"
input_player2_l_btn = "4"
input_player2_r_btn = "5"
input_player2_up_axis = "-1"
input_player2_down_axis = "+1"
input_player2_left_axis = "-0"
input_player2_right_axis = "+0"
input_player2_l2_btn = "6"
input_player2_r2_btn = "7"
input_player2_l3_btn = "11"
input_player2_r3_btn = "12"
input_enable_hotkey_btn = "8"
input_exit_emulator_btn = "9"
Note: I changed input_player1_joypad_index = “1” to 1 instead of 0 as 0 wasn’t my controller.
I thought I was onto a winner! Loaded a rom, and nothing worked…until I tried the new hotkey to exit of Start and Select…AND IT WORKED.
So, it seems that it just isnt reading my controller as Player 1 is that correct? As the hotkeys to exit would apply to any controllers rather than player1 input?
Ahhh! Just as I thought I was getting somewhere, I am stuck again. Any help would be appreciated.
I am pretty much a n00b when it comes to Pi and coding – so I hope some of this at least made a little sense?
Thanks again.