libretro / mame2015-libretro

Late 2014/Early 2015 version of MAME (0.160-ish) for libretro. Compatible with MAME 0.160 sets.
17 stars 36 forks source link

Problem to assign default buttons in retromain.c #27

Open sergiobenrocha2 opened 8 years ago

sergiobenrocha2 commented 8 years ago

I can't shift gear using a joypad in Super Monaco GP (smgp), it seems the 2 buttons shift buttons are not assigned there. I can use B and Y retro buttons from the keyboard, which is weird since B is the break in this game. it's the retrokeyboard buttons actually

How can we assign these buttons in the joypad? There are only 6 Buttons_mapping in the retromain.c Seems it's not possible right now, there aren't general buttons assigned to shifters. You have to assign them in "Input (this Game)":

Shift Down: Kbd A Shift Up: Kbd Z

If I config it in the mame osd (smgp.cfg):

<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="smgp">
        <input>
            <port tag=":IO1PORTA" type="P1_BUTTON1" mask="16" defvalue="16">
                <newseq type="standard">
                    JOYCODE_1_BUTTON5
                </newseq>
            </port>
            <port tag=":IO1PORTA" type="P1_BUTTON2" mask="32" defvalue="32">
                <newseq type="standard">
                    JOYCODE_1_BUTTON6
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39673326-problem-to-assign-default-buttons-in-retromain-c?utm_campaign=plugin&utm_content=tracker%2F20642456&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F20642456&utm_medium=issues&utm_source=github).
sergiobenrocha2 commented 8 years ago

OutRunners (orunners) has the same problem, Input (this Game):

P1 Button 1: Kbd SPACE --> shift up, should be retropad R P1 Button 2: Kbd LSHIFT --> shift down, should be retropad L P1 Button 3: Kbd Z --> change radio station (mega radio station) P1 Button 4: Kbd X --> change radio station (left) P1 Button 5: Kbd C --> change radio station (right)

sergiobenrocha2 commented 8 years ago

After Burner II, general input:

AD Stick Z Analog Dec: Kbd A --> should be retropad L AD Stick Z Analog Inc: Kbd Z --> should be retropad R

sergiobenrocha2 commented 8 years ago

Regarding general input:

<sergio-br2> I'm playing Super Monaco GP, I can see the Shift Down and Shift Up in the Input (this Game)
<sergio-br2> but I can't find these buttons in the general input
<sergio-br2> seems they are not any of buttons 1 to 16
<Tafoid> In the TAB menu -> Input (This Machine) they are listed as A and Z
<sergio-br2> but just in the "this machine"
<sergio-br2> I'd like to know what's the correspondent to general
<Tafoid> There is no global shifter assignments, no
<sergio-br2> there are for mahjong, but not to shifter... uh
<Tafoid> shifters are not always digital.. mahjong panels are
sergiobenrocha2 commented 8 years ago

Special Criminal Investigation (World set 1), for some reason it's assigning shifter and turbo to the same key. The same thing happens with daytona

sci-161202-230506

sergiobenrocha2 commented 8 years ago

Slip Stream (slipstrm)

Gear Change: Kbd Space

sergiobenrocha2 commented 8 years ago

Speed Racer (speedrcr)

speedrcr-161202-232145

sergiobenrocha2 commented 8 years ago

Rave Racer (Rev. RV2, World), (raveracw)

Shifter is assigned to UP and DOWN

raveracw-161202-233842

sergiobenrocha2 commented 8 years ago

A.B. Cop (World, FD1094 317-0169b), (abcop), A is assigned to both jump and pedan inc

abcop-161203-000738

sergiobenrocha2 commented 8 years ago

Big Run (11th Rallye version), (bigrun), A is assigned to both P1 Brake and P1 Pedal 1Inc.