Controller setup not persisting into emulators.
-
Seems a similar problem to https://retropie.org.uk/forum/topic/32997/. Add the
vendor_id
,product_id
to the config file (as explained in the link post) and see this solves your issue. -
@mitu
In that other post you linked to, the OP said that he got the vendor and prod ID's from "the overlay error message."
In the lower right I'm getting a brief overlay before the game starts that says
"Dragonrise Inc. Generic USB Joystick (121/6) not configured; would 121 and 6 be the vendor and product ID?EDIT: I see now that this appears to be correct, however adding the lines at the end of the file and as the 2nd & 3rd line after the name did not work. Is there a specific place in the config file this needs to be called out?
EDIT2: As a sanity check I enable BT on this box and paired a licensed Switch Pro controller. It works perfectly without the need to add the vendor/prod id to the config file.
-
@Mr-Lumbergh No, the order in the file shouldn't matter. Can you post the contents of your
.cfg
file ? -
@mitu Please see below. Note that I still have the vendor and prod ID callouts in the config file.
input_device = "DragonRise Inc. Generic USB Joystick" input_vendor_id=121 input_product_id=6 input_driver = "udev" input_left_axis = "-0" input_state_slot_decrease_axis = "-0" input_right_axis = "+0" input_state_slot_increase_axis = "+0" input_r_btn = "6" input_save_state_btn = "6" input_down_axis = "+1" input_l_btn = "4" input_l_btn_label = "LB" input_load_state_btn = "4" input_y_btn = "0" input_y_btn_label = "Y" input_x_btn = "1" input_menu_toggle_btn = "1" input_b_btn = "2" input_reset_btn = "2" input_a_btn = "3" input_up_axis = "-1" input_select_btn = "8" input_select_btn_label = "Back" input_start_btn = "9" input_start_btn_label = "Start" input_exit_emulator_btn = "9" input_enable_hotkey_btn = "8" input_l2_btn = "5" input_r2_btn = "7" input_r2_btn_label = "RT"
-
The
.cfg
seems fine. Maybe adding a"
around the values is better ?... input_vendor_id="121" input_product_id="6" ...
Can you run
cat /proc/bus/input/devices
and post the output ? -
@mitu @Mr-Lumbergh and is the spaces around
=
also important, I think?input_vendor_id = 121
Vs.
input_vendor_id=121
-
@sleve_mcdichael @mitu
I'm not sure if it was the spaces or the quotes I forgot to include, but after taking both of your suggestions on the config file edits I'm in business.Thank you both.
Mitu, I didn't post the results of cat on the input devices but I can if you're still interested, otherwise I'll go ahead and tag this as solved.
-
@Mr-Lumbergh said in Controller setup not persisting into emulators.:
Mitu, I didn't post the results of cat on the input devices but I can if you're still interested, otherwise I'll go ahead and tag this as solved.
No, it's not necessary - if it worked it means the vendor/produc IDs were correct, this is what the command would have shown in detail.
-
@mitu Thanks again for your time.
-
@mitu Any idea when this issue is going to get perma-fixed?
I gather it's some issue with SDL2... -
@Neo-Rio said in Controller setup not persisting into emulators.:
@mitu Any idea when this issue is going to get perma-fixed?
Should be fixed by https://github.com/RetroPie/RetroPie-Setup/pull/3702, though you'll need ES-dev installed (for now, until the corresponding ES changes trickle down to the
stable
branch). -
.. and now the needed EmulationStation changes are available in the
stable
ES branch. Thanks @BuZz !
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.