Amiberry left / right problem
-
Pi Model or other hardware: Raspberry Pi 4 Model B
RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): 4.8
Built From: Original image
USB Devices connected: Keyboard and 2 controller
Controller used: Dragonrise
Emulator: AmiberryGood evening everyone, I'm new to formu and I have a request.
I installed Retropie on Raspberry PI4 B which I plugged into a cabinet I built. When I use the Amiberry emulator with the left and right Dragonrise controllers they are reversed. The other controls work perfectly. With other emulators using Retroarch no problem.
I tried to insert the configuration file "DragonRise inc. Generic USB Joystick .cfg" in a folder that I entered in the configuration paths of the Amiberry to set the commands to my pleasure with the following code:input_device = "DragonRise inc. Generic USB Joystick " input_driver = "udev" input_up_axis = "-0" input_down_axis = "+0" input_left_axis = "-1" input_right_axis = "+1" input_state_slot_increase_axis = "+1" input_state_slot_decrease_axis = "-1" input_a_btn = "1" input_b_btn = "0" input_select_btn = "6" input_start_btn = "7" input_y_btn = "3" input_x_btn = "2" input_enable_hotkey_btn = "6" input_l_btn = "3" input_r_btn = "4"
Even in this way, nothing has changed, left and right remain reversed.
I tried to swap the values of the left and right axes but nothing changes.
I tried to change the code as below but nothing has changed:input_l_y_minus_axis = "-0" input_l_y_plus_axis = "+0" input_l_x_minus_axis = "-1" input_l_x_plus_axis = "+1"
and
input_l_y_minus_axis = "-0" input_l_y_plus_axis = "+0" input_l_x_minus_axis = "+1" input_l_x_plus_axis = "11"
To check if Amiberry read the file I set:
input_l_y_minus_axis = "-1" input_l_y_plus_axis = "+1" input_l_x_minus_axis = "-0" input_l_x_plus_axis = "+0"
In fact, the commands have changed when the file is viewed by the emulator.
Do you have any ideas for me?
Thank you in advance for the possible solutions. -
@GioMai81 Thanks for reporting. Unfortunately I don't have this controller to test with. I trust you've checked the Amiberry's documentation first. There's also a new mapping available as explained in that section but never tried it to be honest. I guess you've installed the latest release of Amiberry which is now 5.4 as of typing.
It seems you've mapped only one stick (left). Not sure about the exact design of your controller but what happens if you bind the other stick(s) and D-Pad?
As a reference here's the binding I use for my Xbox One controller. The file is called
Xbox Wireless Controller.cfg
and located underconfigs/amiga/amiberry/conf
. It's safe to remove the first 2 lines from your file (input_device
andinput_driver
).input_r_y_plus_axis = "+4" input_r_y_minus_axis = "-4" input_r_x_plus_axis = "+3" input_r_x_minus_axis = "-3" input_l_x_minus_axis = "-0" input_l_x_plus_axis = "+0" input_l_y_minus_axis = "-1" input_l_y_plus_axis = "+1" input_player1_left_axis = "-6" input_player1_right_axis = "+6" input_player1_up_axis = "-7" input_player1_down_axis = "+7" input_up_btn = h0up input_down_btn = h0down input_left_btn = h0left input_right_btn = h0right input_start_btn = "7" input_select_btn = "6" input_a_btn = "1" input_b_btn = "0" input_x_btn = "2" input_y_btn = "3" input_l_btn = "4" input_r_btn = "5" input_l2_axis = "+2" input_r2_axis = "+5" input_l3_btn = "9" input_r3_btn = "10" input_enable_hotkey_btn = "6" input_exit_emulator_btn = "7" input_menu_toggle_btn = "2" input_reset_btn = "1" input_state_slot_decrease_axis = "+2" input_state_slot_increase_axis = "+5" input_save_state_btn = "5" input_load_state_btn = "4"
Hope this helps!
-
Thanks for the reply. I use an Arcade zero delay usb encoder so I have only one stick.
I have seen the Amiberry documentation but have not found the solution. Regarding the SDL2 configuration method, in my distribution there is no file "conf / gamecontrollerdb.txt" but only that of the modifiable configuration "controllers / gamecontrollerdb_user.txt" which I tried to change without success:03000000790000000600000010010000,DragonRise inc. Generic USB Joystick,platform:Linux,a:b0,b:b1,x:b3,y:b2,start:b6,dpup:+a0,dpdown:-a0,dpleft:-a1,dpright:+a1,
Also tried so
03000000790000000600000010010000,DragonRise inc. Generic USB Joystick,platform:Linux,a:b0,b:b1,x:b3,y:b2,start:b6,dpup:-a0,dpdown:+a0,dpleft:-a1,dpright:+a1,
I noticed that with the mini wifi keyboard the problem is not there.
I tried for tests to disassemble and rotate the stick plate and reconfigure it when starting the emulationstation and retroarch and the problem was no longer on the right and left but it was on the top and bottom.
So I downgraded to Amiberry version 3.3 (I have one installed on a Raspberry Pi3) and now everything works fine.
In the latest version of Amiberry there must be something that is causing problems with Dragonrise. -
@GioMai81 I'm afraid I can't assist you further. If you could bring your issue to GitHub that would be great. Open it at this location please. Thanks.
-
@nemo93 Ok thanks anyway.
I opened a topic on GitHub.
https://github.com/BlitterStudio/amiberry/issues/1022#issue-1405758532
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.