Pocket Adventures.com
by John Till

Products| Guides|

Setting up GPIO Controls using Retrogame

Install retrogame as described here.

Once retrogame is installed, edit the /boot/retrogame.cfg file using:
sudo nano /boot/retrogame.cfg
And map the following GPIO controls:
UP        22  # Joypad up
DOWN       1  # Joypad down
LEFT      23  # Joypad left
RIGHT     20  # Joypad right
ENTER     12  # 'Start' button
LEFTSHIFT  5  # 'Select' button
LEFTCTRL  16  # 'A' button
LEFTALT    6  # 'B' button
Z         26  # 'X' button
X         19  # 'Y' button
A         21  # Left shoulder button
S          0  # Right shoulder button
D         14  # Left trigger button
F         15  # Right trigger button
Save the changes using Ctrl-X, Y, Enter.

The next time you start EmulationStation, open the Main Menu and select Configure Input.
Then map the controls as you would for any other controller.



Copyright © 2018 Pocket Adventures.com