Advertisement
Guest User

Untitled

a guest
May 5th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.25 KB | None | 0 0
  1. # Sample configuration file for retrogame.
  2. # Really minimal syntax, typically two elements per line w/space delimiter:
  3. # 1) a key name (from keyTable.h; shortened from /usr/include/linux/input.h).
  4. # 2) a GPIO pin number; when grounded, will simulate corresponding keypress.
  5. # Uses Broadcom pin numbers for GPIO.
  6. # If first element is GND, the corresponding pin (or pins, multiple can be
  7. # given) is a LOW-level output; an extra ground pin for connecting buttons.
  8. # A '#' character indicates a comment to end-of-line.
  9. # File can be edited "live," no need to restart retrogame!
  10.  
  11. # Here's a minimal config for the "Retro Gaming" guide,
  12. # 4-way stick + 2 buttons; have keyboard handy for other functions.
  13.  
  14. LEFTCTRL 23   # Left control key = fire/jump/primary/'A' button
  15. LEFTALT   7   # Left alt key     = thrust/seconady/'B' button
  16. UP       10
  17. DOWN     17
  18. LEFT     25
  19. RIGHT     9
  20. ESC      23 7 # Esc key = hold 'A'+'B' buttons (exit ROM)
  21.  
  22. # For configurations with few buttons (e.g. Cupcade), a key can be followed
  23. # by multiple pin numbers.  When those pins are all held for a few seconds,
  24. # this will generate the corresponding keypress (e.g. ESC to exit ROM).
  25. # Only ONE such combo is supported within the file though; later entries
  26. # will override earlier.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement