Universal Keyboard Mapping
  • Hi, I'm still building my cabinet but playing around with the config while the paint dries. I'm using https://github.com/ian57/Raspicade-Retrogame-2Player-BPlus as a reference to how I'm going to map things out. However what I found is when I map my keyboard controls using this I have some issues. Right now most notable is when using the NES emulator the start button (1) also brings up this "select state" menu, also the A button which I have mapped to button 2 or LEFTALT doesn't seem to work at all.

    Could someone describe their keyboard mapping to get things working across NES, SNES, FBA & MAME4ALL?
  • In Raspicade the same keyboard mapping is used for all emulators see config files in my github repo https://github.com/ian57/Raspicade-configuration-files. Here is the pisnes keyb config :

    [Keyboard]
    # Get codes from /usr/include/SDL/SDL_keysym.h
    #Using default Mame key mapping
    A_1=306 #LeftControl
    B_1=308 #LeftAlt
    X_1=32 #Space
    Y_1=304 #LeftShift
    L_1=122 #z
    R_1=120 #x
    START_1=49 #1
    SELECT_1=53 #5
    LEFT_1=276 #Left
    RIGHT_1=275 #Right
    UP_1=273 #Up
    DOWN_1=274 #Down
    QUIT=27 #Escape
    ACCEL=8 #Backspace
    #player 2 keyboard controls, disabled by default
    A_2=97 #a
    B_2=115 #s
    X_2=113 #q
    Y_2=119 #w
    L_2=101 #e
    R_2=116 #t
    START_2=50 #2
    SELECT_2=54 #6
    LEFT_2=100 #d
    RIGHT_2=103 #g
    UP_2=114 #r
    DOWN_2=102 #f
    ACCEL=9 #tab
  • what was wierd was the leftalt wasn't working the nes emulator, but then after messing around with the fceux.cfg i got it working. Some of these key mappings overlap/conflict with fceux but I was able to get everything working (at least everything I've tested) by editing fceux.cfg

Howdy, Stranger!

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