Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Matching Mame2003-plus and FBAlpha controls



  • agree classic should be the default have said that for a while. I need to test these layouts and do the sf2 updates not pushing any of this without testing.

    basically as far as gamepads go.

    gamepad (modern on alpha) is a sf2 fight stick layout that works on a modern controller is ok for sf2 on a gamepad pretty much useless for anything else

    classic is what you want for games in general for a modern controller.

    again 6 button is the snes pad layout for sf2 pretty much only useful for you guessed it sf2.



  • @grant2258 said in Matching Mame2003-plus and FBAlpha controls:

    to get the correct mapping for sf2 all ive done is change the mapping to what it should be and ill update the sf2 to map right to the jamma standard.

    Please excuse the question if I misunderstand something: What about the other SF-type games other than SF2? Wouldn't that break their button layout?

    That said, I appreciate the change, because if I do understand it correctly, it will put button 1-3 on the lower row of the typical 6-button grid, which I prefer in general.

    May I ask if there are plans to include a diagram for Gamepad Classic in your repo?



  • what other 6 button games are you referring too? This is only cps 6 button games that are mapped wrong against jamma specs afaik. Classic is not an arcade diagram there is no need to include a diagram for it would cause confusion. Ill need to finish these updates tomorrow hopefully.

    ill give you a list here for it though.

    JOYPAD_B: BUTTON1
    JOYPAD_Y: BUTTON3
    JOYPAD_X: BUTTON4
    JOYPAD_A: BUTTON2
    JOYPAD_L: BUTTON5
    JOYPAD_R: BUTTON6
    JOYPAD_L2:BUTTON7
    JOYPAD_R2:BUTTON8
    JOYPAD_L3:BUTTON9
    JOYPAD_R3:BUTTON10
    


  • ill go through the 6 button games and have a lookskie as whats going on



  • Well The thing is jamma officially only supports 2 players and 3 buttons. This is the standard. The extra buttons are handled through a kick panel.

    If you plug double dragon into a sf2 can the buttons will be at the top because that is the way the jamma buttons are mapped in the on the control panel.

    technically speaking the fix is pretty easy for this is easy as far as mame is concerned.

    if a game is 1 - 3 buttons use the bottom row

    when a game is more than 3 buttons you need to apply a kick harness type emulation to the arcade panel to set it to your button layout.

    lets say for argument sake you setup to a standard physical setup for the panel so all your 1 - 3 button games use .

    456
    123
    

    all 1 - 3 buttons would need no processing.

    But for sf2 you would need to say look the rows are wrong compared to your physical setup on the sf2 arcade machine. On our panel the 123 buttons are at bottom (jamma standard) and on the sf2 machine they are at the top. so you would need to swap the rows for sf2.

    This is perfectly acceptable to change on an arcade panel and is doable the problem mame can handle this with controller files based on your layout or cusomizing inputs on gamename.

    The problem is if you do this it wont map nice with RA function of what this button does mark added. We can add rules for arcade panels in ra itself per game when needed but the input code would need re written because its in a define instead of a structure that we cant change I never undserstood why it was done this way.

    @markwkidd here is an example of what we could do

    https://github.com/libretro/mame2003-plus-libretro/blob/7aec74d3109d8707a933d6178174d2afbd99d35d/src/mame2003/mame2003.c#L1895-L1959

    but since you want ra to handle the input instead of the mame internal system we cant use this because the information would be wrong in the input needles.



  • @grant2258 said in Matching Mame2003-plus and FBAlpha controls:

    what other 6 button games are you referring too?

    Mainly all the other SF games, I'll have to check how non-SF fighting games with six button do behave with the different button presets.

    The thing that confuses me is that you keep mentioning only SF2 and no other SF or other 6-button games. Is it really only an issue with this part of the SF series?

    Classic is not an arcade diagram there is no need to include a diagram for it would cause confusion.

    At the moment, I am confused. :) In what way is Gamepad Classic different from the other diagrams that makes it not a diagram?

    ill give you a list here for it though.

    Thanks, I'll look into it when I'm back home.

    And also thanks for your detailed Jamma explanations.



  • classic is a controller only ie xbox360 psx orsome other modern controller.

    the other layouts are for 6 button games/ arcade panels.

    Also as far as sf2 goes its because modern is xbox fight stick layout for sf2 . Once you understand what jamma is and how you add extra buttons its easy to understand.

    should enlighten you a little.

    The way mame is setup atm we cant change maps without big code changes that i really dont feel like doing tbh



  • @grant2258 I watched that video, but it doesn't explain why Classic doesn't have a mapping diagram in https://github.com/grant2258/mame2003-plus-libretro/blob/input_fix/metadata/wipcontrols/.

    Classic might represent a handheld controller, but if you use it with an 8-button layout like the one on your controller.png it still maps to those 8 buttons in a specifiy way like all the other diagrams. So, why not make a png that shows that mapping?

    And why do you mention only SF2 and never the other SF titles?

    By the way, can it be that the addition of a new "Flightstick" layout shifted the other layouts after Classic one place backwards? Because I updated mame2003-plus today and now all my Street Fighter games are set to 8-button instead of 6-button like I remember setting them before. If so, it would be better if future additions won't change existing layout choices.



  • I havent done any updates mark made the classic the default choice. As far as i know he didnt change any mapping you would need to ask him the specifics. If he did change the mapping offsets im sure it wasnt intentional.

    There is no new mappings fighstick was just called gamepad before

    all cps sf2+ have the same mapping no need to mention them all.

    Classic is not an arcade panel ive said this many times. you can map it yourself you have the info above for it. how it maps out depends how you map your arcade buttons.

    JOYPAD_B: BUTTON1
    JOYPAD_Y: BUTTON3
    JOYPAD_X: BUTTON4
    JOYPAD_A: BUTTON2
    JOYPAD_L: BUTTON5
    JOYPAD_R: BUTTON6
    JOYPAD_L2:BUTTON7
    JOYPAD_R2:BUTTON8
    JOYPAD_L3:BUTTON9
    JOYPAD_R3:BUTTON10

    from the info i have gave you for classic above

    345
    yxl
    bar
    126
    

    for this to work as an arcade panel you would need to map it as

    bay
    xlr
    
    or
    xlr
    bay
    

    which would make using other ra cores unusable thats why there is no map for it in arcade panels. It also why I said earlier we wont be mapping out arcade panels to a gamepad just pick classic if you want to do this.



  • @clyde i just tested marks update it does appear the offsets are wrong now for what you choose im sure mar will fix it soon enough.



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.