So it looks like my idea of copying an existing autoconfig file and rename it did the job… somehow. I took GameMID.cfg from the autoconfig/android directory, changed its name and input_device to match the two controllers accordingly. Now it looks like this:
input_device = "PG-9052" #("SPEEDLINK MYON" for the 2nd one)
input_driver = "android"
input_b_btn = "96"
input_y_btn = "99"
input_select_btn = "109"
input_start_btn = "108"
input_up_btn = "19"
input_down_btn = "20"
input_left_btn = "21"
input_right_btn = "22"
input_a_btn = "97"
input_x_btn = "100"
input_l_btn = "102"
input_r_btn = "103"
input_l2_btn = "104"
input_r2_btn = "105"
input_l3_btn = "106"
input_r3_btn = "107"
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"
ABXY, trigger/shoulder buttons and select & start all work fine (and so probably do L3/R3), but D-pad and analog sticks aren’t detected at all. Though the values for D-pad seem to be correct following KeyTest. As previously stated, the app also registers left stick movements as the 4 D-pad values (19 to 22) and doesn’t see anything for right stick. I tried replacing h0’s for D-pad but didn’t help either. How can I find the correct values? Do the “labels” part have any relevance for this or, as I suspect, it doesn’t matter?
I wanna point out that Mupen64 and all .emu emulators correctly detect all buttons and sticks, but reicast r6 has a similar issue with analog stick overlapping with D-pad. GameKeyboard+ essentially shows the same behaviour as KeyTest (left stick seen as D-pad, right stick not seen).