Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Mame: 2nd Button not working - neither on GPIO nor on Keyboard

    Emulator Arcade/PC/Console
    mame 2nd button neither gpio
    2
    10
    3702
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ingo Werstler
      Ingo Werstler last edited by

      I'm trying to run a few old games which need 2 or 3 buttons. In Emulation station everything is fine, but in any emulator, the secondary button is not recognized, e.g. in Ghosts'n'Goblins I can't jump. Or in Nemesis I can't shoot rockets. The third button is recognized again, so e.g. in Nemesis I can select power ups.

      I first though I might not have the right wiring to the GPIO pins but it's the same with the keyboard. Pressing "X" has no effect in any game.

      I also checked with jstest, everything is working fine.

      Any ideas what I am doing wrong?

      recalbox 4.0.0.b5

      Ingo Werstler 1 Reply Last reply Reply Quote 0
      • Ingo Werstler
        Ingo Werstler @Ingo Werstler last edited by

        Just to be sure there's nothing wrong with my setup I just tried Gradius III for the SNES and there all 3 buttons are working perfectly.

        1 Reply Last reply Reply Quote 0
        • Substring
          Substring last edited by

          We don't handle the keyboard, so it's not a good reference

          Could you try ssh-ing to your pi and run evtest for each controller ?

          Former dev - Please reply with @substring so that i am notified when you answer me
          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

          Ingo Werstler 1 Reply Last reply Reply Quote 0
          • Ingo Werstler
            Ingo Werstler @Substring last edited by

            @subs

            all 3 buttons respond:

            Event: time 1477073099.646921, type 1 (EV_KEY), code 307 (BTN_NORTH), value 1
            Event: time 1477073099.646921, -------------- SYN_REPORT ------------
            Event: time 1477073099.856952, type 1 (EV_KEY), code 307 (BTN_NORTH), value 0
            Event: time 1477073099.856952, -------------- SYN_REPORT ------------
            Event: time 1477073100.116937, type 1 (EV_KEY), code 305 (BTN_EAST), value 1
            Event: time 1477073100.116937, -------------- SYN_REPORT ------------
            Event: time 1477073100.276921, type 1 (EV_KEY), code 305 (BTN_EAST), value 0
            Event: time 1477073100.276921, -------------- SYN_REPORT ------------
            Event: time 1477073100.666922, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1
            Event: time 1477073100.666922, -------------- SYN_REPORT ------------
            Event: time 1477073100.846921, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 0
            Event: time 1477073100.846921, -------------- SYN_REPORT ------------

            1 Reply Last reply Reply Quote 0
            • Substring
              Substring last edited by

              not west ?

              Former dev - Please reply with @substring so that i am notified when you answer me
              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

              1 Reply Last reply Reply Quote 0
              • Ingo Werstler
                Ingo Werstler last edited by

                I tried with several connections to the GPIO pins, none worked. Which GPIO pin relates to west?

                here again with the joystick output:

                Event: time 1477114546.715394, type 3 (EV_ABS), code 1 (ABS_Y), value -1
                Event: time 1477114546.715394, -------------- SYN_REPORT ------------
                Event: time 1477114546.895392, type 3 (EV_ABS), code 1 (ABS_Y), value 0
                Event: time 1477114546.895392, -------------- SYN_REPORT ------------
                Event: time 1477114547.165395, type 3 (EV_ABS), code 0 (ABS_X), value 1
                Event: time 1477114547.165395, -------------- SYN_REPORT ------------
                Event: time 1477114547.325407, type 3 (EV_ABS), code 0 (ABS_X), value 0
                Event: time 1477114547.325407, -------------- SYN_REPORT ------------
                Event: time 1477114547.635416, type 3 (EV_ABS), code 0 (ABS_X), value -1
                Event: time 1477114547.635416, -------------- SYN_REPORT ------------
                Event: time 1477114547.815413, type 3 (EV_ABS), code 0 (ABS_X), value 0
                Event: time 1477114547.815413, -------------- SYN_REPORT ------------
                Event: time 1477114548.155413, type 3 (EV_ABS), code 1 (ABS_Y), value 1
                Event: time 1477114548.155413, -------------- SYN_REPORT ------------
                Event: time 1477114548.315395, type 3 (EV_ABS), code 1 (ABS_Y), value 0
                Event: time 1477114548.315395, -------------- SYN_REPORT ------------
                Event: time 1477114556.825393, type 1 (EV_KEY), code 307 (BTN_NORTH), value 1
                Event: time 1477114556.825393, -------------- SYN_REPORT ------------
                Event: time 1477114556.995396, type 1 (EV_KEY), code 307 (BTN_NORTH), value 0
                Event: time 1477114556.995396, -------------- SYN_REPORT ------------
                Event: time 1477114557.175393, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1
                Event: time 1477114557.175393, -------------- SYN_REPORT ------------
                Event: time 1477114557.305423, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 0
                Event: time 1477114557.305423, -------------- SYN_REPORT ------------
                Event: time 1477114557.475396, type 1 (EV_KEY), code 305 (BTN_EAST), value 1
                Event: time 1477114557.475396, -------------- SYN_REPORT ------------
                Event: time 1477114557.565413, type 1 (EV_KEY), code 305 (BTN_EAST), value 0
                Event: time 1477114557.565413, -------------- SYN_REPORT ------------

                Ingo Werstler 1 Reply Last reply Reply Quote 0
                • Ingo Werstler
                  Ingo Werstler @Ingo Werstler last edited by

                  I also tried with WEST:

                  Event: time 1477119128.595417, type 1 (EV_KEY), code 308 (BTN_WEST), value 1
                  Event: time 1477119128.595417, -------------- SYN_REPORT ------------
                  Event: time 1477119128.765396, type 1 (EV_KEY), code 308 (BTN_WEST), value 0
                  Event: time 1477119128.765396, -------------- SYN_REPORT ------------
                  Event: time 1477119128.875396, type 1 (EV_KEY), code 305 (BTN_EAST), value 1
                  Event: time 1477119128.875396, -------------- SYN_REPORT ------------
                  Event: time 1477119128.985400, type 1 (EV_KEY), code 305 (BTN_EAST), value 0
                  Event: time 1477119128.985400, -------------- SYN_REPORT ------------
                  Event: time 1477119129.145393, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1
                  Event: time 1477119129.145393, -------------- SYN_REPORT ------------
                  Event: time 1477119129.255403, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 0
                  Event: time 1477119129.255403, -------------- SYN_REPORT ------------

                  no change, in Mame, the second button does not react

                  Ingo Werstler 1 Reply Last reply Reply Quote 0
                  • Ingo Werstler
                    Ingo Werstler @Ingo Werstler last edited by

                    Seems it is an issue with Mame 0.78, I got some ROMS for 0.161 and with FBA libretro all buttons work.

                    1 Reply Last reply Reply Quote 0
                    • Substring
                      Substring last edited by

                      i'd rather think you didn't check your romset with clrmamepro

                      Former dev - Please reply with @substring so that i am notified when you answer me
                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                      Ingo Werstler 1 Reply Last reply Reply Quote 0
                      • Ingo Werstler
                        Ingo Werstler @Substring last edited by

                        @subs I downloaded the full 0.78 romset and used it with Mame so I did not expect I have to check it if it's the right romset already. I will do a clrmamepro check and let you know.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Want to support us ?

                        68
                        Online

                        99.6k
                        Users

                        28.1k
                        Topics

                        187.1k
                        Posts

                        Copyright © 2021 recalbox.com