-
-
Notifications
You must be signed in to change notification settings - Fork 12
Step 6
Eugene Andruszczenko edited this page Mar 5, 2018
·
1 revision
You will now be assigning keyboard inputs to action buttons of the controller (GPIO pins on the Raspberry Pi)
Edit the RetroGame configuration file
sudo nano /boot/retrogame.cfg
You can replace the entire file with the following
- pro tip:Hit CTRL+K on you keyboard to delete lines*
# Here's a pin configuration for the PiGRRL 2 project:
LEFT 22 # Joypad left
RIGHT 20 # Joypad right
UP 7 # Joypad up
DOWN 12 # Joypad down
LEFTCTRL 19 # 'A' button
LEFTALT 5 # 'B' button
Z 6 # 'X' button
X 13 # 'Y' button
RIGHTSHIFT 26 # 'Select' button
ENTER 16 # 'Start' button
A 18 # Left shoulder button
S 27 # Right shoulder button
Q 15 # Left trigger button
W 17 # Right trigger button
ESC 16 26 # Exit ROM; PiTFT Button 1
Hit 'CTRL+X' and 'Y' to confirm the save
This is really just a visual check to ensure your file looks as below
Open the EmulationStation Input configuration file
sudo nano ~/.emulationstation/es_input.cfg
Ensure that your file's content are exactly as below
<?xml version="1.0"?>
<inputList>
<inputAction type="onfinish">
<command>/opt/retropie/supplementary/emulationstation/scripts/inputconfiguration.sh</command>
</inputAction>
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
<input name="pageup" type="key" id="97" value="1"/>
<input name="start" type="key" id="13" value="1"/>
<input name="up" type="key" id="1073741906" value="1"/>
<input name="a" type="key" id="1073742048" value="1"/>
<input name="b" type="key" id="1073742050" value="1"/>
<input name="down" type="key" id="1073741905" value="1"/>
<input name="pagedown" type="key" id="115" value="1"/>
<input name="right" type="key" id="1073741903" value="1"/>
<input name="x" type="key" id="122" value="1"/>
<input name="select" type="key" id="1073742053" value="1"/>
<input name="y" type="key" id="120" value="1"/>
<input name="left" type="key" id="1073741904" value="1"/>
</inputConfig>
</inputList>
If all is good as above, hit CTRL+X to exit the editor and