rerouting the button controlls in pimame
  • hello again.

    my "gamepad" (it's really just a teeny tiny keyboard) is both missing keys (esc, del, alt, ect.) and is set up in a weird way. what files do i edit to change the button mappings for pimame 7.10 in all the emulators?
  • Hi.
    You can map the buttons to what you want. Each emulator pretty much has its own config file.
    Some require you to enter the button ie 'k' is say A fire for SNES, others ask for the keyboard command behind the scenes so 'k' is something weird like 154.
    I will see if I can find where the files are and what they are called for each emulator.
    Some emulators have keys that you cannot change for example entering menu might always have to be F1 key.
    My arcade has joystick through the GPIO ports so each button is actually a defined keyboard button. I have most of the emulators to work without keyboard and mouse.
  • Ok, here we go:

    DGEN - (Megadrive / Genesis)
    Config file - dgenrc.5 (uses normal keyboard buttons so lalt, 5, esc etc...
    Location - /home/pi/emulators/dgen-sdl-1.32

    Final Burn Alpha - (Capcom Arcade & Neo-Geo)
    Config file - fba2x.cfg (uses SDL keyboard commands so 59, 53, 275 etc...
    Location - /home/pi/emulators/fba

    MAME4ALL - (Arcade - 0.37 ROM SETS)
    Config file - mame.cfg (uses SDL keyboard commands so 59, 53, 275 etc...
    Location - /home/pi/emulators/mame4all-pi

    mupen64plus - (Nintendo 64)
    Config file - mupen64plus.cfg (uses SDL keyboard commands so 59, 53, 275 etc...
    Location - /home/pi/emulators/mupen64plus-rpi

    osmose (Game Gear / Master System)
    Config file - osmose.ini (uses PAD1_BUTTON_A = SDLK_LCTRL etc
    Location - /home/pi/emulators/osmose

    pisnes - Super Nintendo SNES
    Config file - snes9x.cfg (uses keyboard SDL A_1=308 , QUIT=27
    Location - /home/pi/emulators/pisnes

  • @Higgy69 you are amazingly helpfull, but what about the GBA/GBC/64 emulators, those are the ones i'm going to be using most.
  • Hi,

    GBA - if you use a keyboard to navigate the menu, you should then get the option to re-configure the keys 'configure keyboard input' within the emulator so you don't need to edit file. If you don't get anything then you are probably missing the gba_bios.bin file.

    GB - Not working on my set-up, sorry.

    C64 - You need to press F12 to enter menu. I am just going to change one of my GPIO keys to F12 so I can try this emulator. I have not used it yet! - UPDATE - I have got it working. In menu you can config loads. Even change the F12 key! It seems to like .d64 files not .rp2 Also there is a keyboard you can bring up so if a game uses joystick you can probably run this without keyboard attached to RPI.

    Remember to goto SETTINGS MANAGEMENT and save your settings once done!!!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!