Picade board keyboard mappings

Hi,

I understand that the Picade board uses the ATmega32U4 controller to pretend to be a keyboard (correct me if I’m wrong) but what are the default key mappings of the software? Anyone know?

I kind of figured out that ESC and ENT on the board are escape and enter (duh) but whats the 1UP? How does that work? How about the volume controls? Any insight into how they work (they don’t seem to do anything on mine, but I’m getting sound via the HDMI cable and TV so maybe that’s normal).

What keys to the joystick buttons map to?

Any tips on reprogramming all this? I’m interested in adding a second controller (https://learn.adafruit.com/usb-snes-gamepad/).

Thanks

The Picade sketch, the source to the default firmware your Picade was shipped with, is available for all to see, modify and customise here: https://github.com/pimoroni/Picade-Sketch/blob/master/Picade/Picade.ino

You can find the default key mappings at the top:

  { KEY_UP_ARROW,    UP     },
  { KEY_DOWN_ARROW,  DOWN   },
  { KEY_LEFT_ARROW,  LEFT   },
  { KEY_RIGHT_ARROW, RIGHT  },

  { KEY_LEFT_CTRL,   BTN_1  },
  { KEY_LEFT_ALT,    BTN_2  },
  { ' ',             BTN_3  },
  { KEY_LEFT_SHIFT,  BTN_4  },
  { 'z',             BTN_5  },
  { 'x',             BTN_6  },

  { 's',             START  },
  { 'c',             COIN   },
  { KEY_RETURN,      ENTER  },
  { KEY_ESC,         ESCAPE },

The items on the left are either a key constant ( used for non-printable characters ) or a single character 'c'. You can find a list of available constants here: https://www.arduino.cc/en/Reference/KeyboardModifiers

Great, thanks very much :)

There could be a small issue with this :


which is due https://retropie.org.uk/forum/topic/20890/select-and-start-not-work-starting-movie-record/4?_=1592307706471 (in short : Most likely your Select key is bound to O , that’s the default key-bind for recording (see https://docs.libretro.com/guides/input-and-controls/#hotkey-controls). If your Picade’s control emulates a keyboard, you can either disable that binding in the configuration file, or re-configure the Picade’s controller/keyboard to use another key.)