GPi Case and PiSNES Configs



  • I recently got a GPi case and set it up with a Raspberry Pi Zero W and installed Recalbox onto it. After testing around with some SNES games, I've noticed that the A/B and X/Y buttons are swapped (A button is mapped to B on the case, B to A, X to Y and Y to X). Doing some digging, I learned that I should be able to create a custom config file for the SNES and so I created the config file /recalbox/share/custom_configs/snes9x.cfg and added the line snes.configfile=/recalbox/share/custom_configs/snes9x.cfg to my recalbox.conf and for good measure I rebooted Recalbox. When I run SNES roms though, the custom config file is seemingly ignored. Is there something I am missing?

    Setup:
    Device: Retroflag GPi Case
    Board: Raspberry Pi Zero W (2017)
    SD Card: 32GB SanDisk Ultra (flashed with Recalbox using Etcher)
    Recalbox Version: 6.1.1 Dragonblaze

    RecalBox.conf file and custom snes9x.cfg file



  • @snip3rm00n Yo i've also tried and also did not work here



  • @snip3rm00n OK I did the trick by editing the Python generator file in the terminal

    ssh root@192.168.0.xxx
    mount -o remount, rw /
    cd /usr/lib/python2.7/site-packages/configgen/generators/pisnes
    vi pisnesGenerator.py
    

    And re-mapping the keys

    RECALBOX_TO_PBCS_BUTTON_MAPPING = \
        {
            "up": "UP",
            "down": "DOWN",
            "left": "LEFT",
            "right": "RIGHT",
            "a": "B",
            "b": "A",
    ...
    

    But it got side effects to save/load states indeed
    NB: expecting you have remap your emulationstation keys to a snes controller of course 🙂

    Following this post
    https://forum.recalbox.com/topic/19565/pisnes-fullscreen-since-last-update-6-1-1-dragonblaze



  • This post is deleted!


  • Go to the main menu (Start)
    Go to controller settings
    Go to Configure Controller
    Brings the Gpi case into Axis mode. Hold SELECT* + D-PAD LEFT for 5s. The device led will flash purple when done.
    *SELECT may have been replace by START on new firmware.
    Set up your controller.
    High
    Down
    Left
    Right
    Joystick can be skipped (press D-Pad down 4x)
    A
    B
    X
    Y
    Start
    Select
    L1
    R1
    Skip L2, R2, L3, R3 again (press D-Pad down 4x)
    Hotkey (press Select)
    Press B to finish OK

    Right B and A button in the SNES
    The D-Pad works with Scummvm



Want to support us ?

256
Online

79.8k
Users

21.2k
Topics

154.9k
Posts