[DEFERRED] Snes9X (remapping keys)
  • How do you get into the configuration screen to re-map the keys so that they use the standard MAME layout?
  • Good call. I checked there and there is no simple config as of yet. Here is what that forum said:

    KEYS:
    ~~~~~
    These are the default keys. You can't reassign them without a recompile
    at the moment, sorry about that.

    SNES A: D
    SNES B: C
    SNES X: S
    SNES Y: X
    SNES L: A
    SNES R: F
    SNES Start: Return
    SNES Select: Tab
    SNES D-pad: Arrow keys
    Turbo: Backspace
    Quit: Escape


    If you want to change the keys you need to edit unix/keys.h and then re-
    compile. Please see http://www.libsdl.org/cgi/docwiki.cgi/SDLKey for a
    list of key symbols you may use.
  • I found there is a better way to do this now. There is a config file snes9x.cfg at /home/pi/emulators/pisnes. I mapped in the A, B, X and Y buttons. Here is a snippet from my config file.

    [Keyboard]
    # Get codes from /usr/include/SDL/SDL_keysym.h

    # Default Mame Keys
    # input_map[p1_button1] keyboard[0,lcontrol]
    # input_map[p1_button2] keyboard[0,lalt]
    # input_map[p1_button3] keyboard[0,space]
    # input_map[p1_button4] keyboard[0,lshift]

    # Key vaules from SDL_keysym.h
    # SDLK_LCTRL = 306,
    # SDLK_LALT = 308,
    # SDLK_SPACE = 32,
    # SDLK_LSHIFT = 304,

    A_1=306
    B_1=308
    X_1=32
    Y_1=304
    L_1=97
    R_1=102
    START_1=13
    SELECT_1=9
    LEFT_1=276
    RIGHT_1=275
    UP_1=273
    DOWN_1=274
    QUIT=27
    ACCEL=8
  • Deferred to feature request

Howdy, Stranger!

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