One binding per line: <pad 1-4> <button> <key code>…. Buttons: a b x y l r select start up down left right. Key codes are KeyboardEvent.code names. Keys for pad 2+ apply while fewer gamepads than that are connected. Same format as gasm-run --keymap.
<pad 1-4> <button> <key code>…
gasm-run --keymap