Anonymous
Inactive
Post count: 17

I could help with mapping out the same controller to use different keys in the other emulators. But I am at a loss as to how to get RetroArch to understand what controller needs to be read in the main config file when you plug in a PS3 controller as player one, and ignore the mappings for the snes usb controller you had plugged in earlier.
I also noticed there is a slight problem with mapping the PS3 controller for my build as if it writes it’s own config no matter what I change, I suspect it has something to do with not having enough power draw to the controller from the usb port (ps3 controller draws 300amps, but the usb from the pi can only supply 100amps).
My guess is when you want to map a certain controller you would use input_device somewhere in the file?:

# SNES CONTROLLERUSB
input_player1_joypad_index = 0
<strong>input_device = "USB,2-axis 8-button gamepad  "</strong>
input_driver = "udev"
input_b_btn = "1"
input_y_btn = "3"
input_select_btn = "6"
input_start_btn = "7"
input_up_axis = "-1"
input_down_axis = "+1"
input_left_axis = "-0"
input_right_axis = "+0"
input_a_btn = "0"
input_x_btn = "2"
input_l_btn = "4"
input_r_btn = "5"

input_enable_hotkey_btn = "6"
input_exit_emulator_btn = "7"

# PS3 CONTROLLERUSB
input_player1_joypad_index = 0
<strong>input_device = "Sony PLAYSTATION(R)3 Controller"</strong>
input_driver = "udev"
input_b_btn = "14"
input_y_btn = "15"
input_select_btn = "0"
input_start_btn = "3"
input_up_btn = "4"
input_down_btn = "6"
input_left_btn = "7"
input_right_btn = "5"
input_a_btn = "13"
input_x_btn = "12"
input_l_btn = "10"
input_r_btn = "11"
input_l2_btn = "8"
input_r2_btn = "9"
input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"

*This is an example config and by no means how I use mine.*
But then the problem starts as to which hotkeys get mapped to what controller? Because 6 and 7 are down and left on the ps3 controller, & select-start on the snes controller. So you try and map only the controls to the PS3 controller to be used with the PSX emulator inside the PSX Retroarch config file, right? Wrong! It still takes hotkeys from your main config file, and another config file from your controllers folder in the Retroarch emulator folder. Fine so you delete the controls in the main file, and also the controller config, but leave the file how you want it inside the PSX emu config, Wrong again!
My main problem is no matter which files I manipulate, or even delete…I still get odd anomalies with using my PS3 controller in PSX Retroarch that forces the controller to use weird mappings even though I specifically set up the mappings I wanted for just that emulator with nothing else connected>
I press R3 and it acts like TRIANGLE, I press L3 it acts like X…so I swap them, boot the game again and they are supposed to be switched but what do you know they register the same input anyway. I hook up my snes usb controller, delete some hotkeys from the PSX emulator, and add some back for the snes controller, and Bam! it works flawless.
So in closing i am looking for a solution in the config file that would make it easy to play with what config you write and for Retroarch to actually use the correct one for the controller attached at the time…seems easy enough right?