Don't you just hate when you have had a problem for days and you finally ask for help, you happen to figure it out? I guess it's cause at that point you abandoned your train of thought.
Anyways for anyone else trying to get the analog features working for farious SEGA games and rebind them for your flightstick or steering wheel I've made a little chart so you can add the rebinds manually
Find your games keybindings file, as example i'll use Afterburner II on the MegaDrive. which can be found at: "/opt/retropie/configs/megadrive/Genesis Plus GX/"
In my case with filename "After Burner II (USA, Europe).rmp"
Open it in notepad and adjust your keys, here is an example of the default buttons, with the A,B,X,Y buttons added, and the vertical throttle removed.
I've also made a little picture you can use as reference, you'll find that under the code, it has all the numbers you need to use.
That's all, have fun setting up your flightsticks and racewheels on a 16bit console.
#Device ID for XE-1AP:
input_libretro_device_p1 = "773"
#Start and Select
input_player1_btn_select = "2"
input_player1_btn_start = "3"
#A,B,X,Y = East,South,North,West
input_player1_btn_a = "11"
input_player1_btn_b = "13"
input_player1_btn_x = "10"
input_player1_btn_y = "12"
#D-Pad is unused so lets add Select and Start to it incase your flightstick doesnt have enough buttons
input_player1_btn_up = "-1"
input_player1_btn_down = "-1"
input_player1_btn_left = "2"
input_player1_btn_right = "3"
input_player1_stk_l_x+ = "16"
input_player1_stk_l_x- = "17"
input_player1_stk_l_y+ = "18"
input_player1_stk_l_y- = "19"
#Right joystick (Throttle)
input_player1_stk_r_x+ = "-1"
input_player1_stk_r_x- = "-1"
input_player1_stk_r_y+ = "21"
input_player1_stk_r_y- = "20"
#Left Shoulder buttons
input_player1_btn_l = "10"
input_player1_btn_l2 = "12"
#Right Shoulder buttons
input_player1_btn_r = "11"
input_player1_btn_r2 = "13"
#No idea what E1 and E2 buttons are for, but lets add them to the thumbstick buttons (R3, L3).
input_player1_btn_l3 = "1"
input_player1_btn_r3 = "0"
I think I screwed something up on the pre-made retroie image. Because I re-flashed the pi and set I2C to be loaded through sudo raspi-config, now when I reboot it does detect my I2C. One step closer to my mobile retropie!
@dudleydes "Select" eventually inserts a coin for all roms. However, I have to push a bunch of buttons first before "Select" inserts a coin. I've experimented to see if I need only to wait a certain amount of time, or hit a certain button before Select, however I haven't found any specific requirement other than hitting a bunch of buttons. And this happens for all roms, mspacman.zip, frogger.zip, mappy.zip, dkong.zip, and so on.
It's off topic but fun to mention-- I modified the dkong.zip ROM so that Pauline is the one climbing the ladders to save Mario rather than the other way around. It's pretty cool that it actually worked (i.e., I didn't figure out how to do it, but found a process for doing it on the web).
ohh, I didn't knew descent supported that rare analog pad.
I poked around and managed to add the option to use that analog pad in the menu, it works wonders.
I just created a pull request with the fix. now it should be a matter of time for the option appear if they accept my fix.
Well, i must say, i suddenly found a solution that works for now.
The analog stick is working, D-pad still no response.
Anyway, i changed the controller settings but did not change the up, down, left right. Just left it as the default values.
UP : up
I only have changed the buttons. this setting seems to work.
@markt correct. As I said, and from reading your jstest tests, your joysticks are effectively being recognized as analogs correctly, it's just that they don't really map to the trackball the way you think they could.
You may try another emulator (lr-fba vs lr-mame vs AdvMame) and see if they handle it differently, or maybe someone has a different idea on how to configure it to make it work the way you want.