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



  • 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



  • 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.


  • Moderator
    Team

    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 ?



  • @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 ------------


  • Moderator
    Team

    not west ?



  • 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 ------------



  • 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



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


  • Moderator
    Team

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



  • @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.



Want to support us ?

403
Online

24324
Users

12929
Topics

97874
Posts

Looks like your connection to Recalbox Forum was lost, please wait while we try to reconnect.