Remapping MUPEN64PLUS Controls
YES! IT IS POSSIBLE!! :3
YES! IT IS POSSIBLE!! :3
Coming Soon
May 27, 2018 FusionFall Retro: How download and a few tips and tricks! Controller I Use: scuf.com. What Happened To FusionFall? - Duration: 8:04. HEDROVER 20,284 views.
6,601
27
9
CLOSED
Vanelan
09-10-14 09:59 PM
09-10-14 09:59 PM
Vanelan
02-09-16 03:51 PM
02-09-16 03:51 PM
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1454/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1454/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
Okay, this has been a question that has been asked over and over in this forum and I have figured out how to finally do it. Here is a step by step guide to remapping the Mupen64Plus keys: Step 1: Open the data folder. Press windows key+r and type in C:ProgramDataVizzedVizzedRgrPlugin Step 2: Navigate to the Mupen64Plus folder. This will be located in the User-(your user#)Mupen64Plus folder Example: My user # 374776 so mine would be located in User-374776Mupen64Plus Most of the time, there will only be 1 folder with a user number unless you share a computer with someone else with a vizzed account. In that case, simply go to your profile and look at the numbers in the URL to see your user number. As you can see on my profile page's link, its the number after 'id=' Step 3: Open the InputAuto.cfg file in a text editor other than notepad (wordpad should work fine) Step 4: Here is where it gets slightly difficult, but nothing too difficult if you got this far. You will now edit the keys using the key codes for each key you want to remap. Use the list at the bottom of this post to see all the key codes. Example of how to enter a key code to change a mapped key: Here I use the Start key, which by default is mapped to Enter: In the example, the key code is the number in the parenthesis (13) For my example, I will remap the key to the 7 key. This is represented by key code 55 Here is what it should look like after you change it: As seen above, the number is changed from 13 to 55, changing the Start button from Enter to 7 Step 5: After you have remapped the keys as you wish, you will need to save the config file. Click file as shown in the image above then click save. Step 6: Close the editor. Step 7: We will next need to set the file to read only so it doesn't revert to the standard config. To do this, you need to right click the InputAuto.cfg file and click properties. In the General tab, you will see a check box with 'Read-only' next to it. Check the box and click OK. Step 8: Close out the Mupen64Plus window, start up a game, and enjoy with your newly remapped controls. Key Codes: |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Post Rating: 8 Liked By: EideticMemory, Jordanv78, looba, MysteryMan007, NorweAstafar, patar4097, therealsilvercdccd, yoshirulez!,
therealsilvercdccd is Offline
Level: 12
POSTS: 20/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
POSTS: 20/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
vanelan : How do we remap the controls to make it work with say an XBox controller or something of that nature? |
Member
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1498/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1498/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
therealsilvercdccd : Well, first question, does it work with windows? Press Windows key+r and type in joy.cpl and see if it shows up in the game controllers panel. Click the controller and go to properties and make sure its working properly. Let me know. |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
therealsilvercdccd is Offline
Level: 12
POSTS: 21/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
POSTS: 21/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
vanelan : Yes. The controller works. I have it set up to work with the 1964 emulator. But I would prefer to use it with the Mupen64Plus emulator. |
Member
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1515/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1515/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
therealsilvercdccd : Does it work at all with the mupen emulator? Typically, the controllers work but the controls need to be manually changed in the configuration file. |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
therealsilvercdccd is Offline
Level: 12
POSTS: 22/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
POSTS: 22/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
vanelan : No. It's not working at all with Mupen64Plus as far as I can tell. How would I change the controls for the controller? |
Member
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1517/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1517/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
therealsilvercdccd : You would have to open that file as described above. Is that the only controller you have plugged in? |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
therealsilvercdccd is Offline
Level: 12
POSTS: 23/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
POSTS: 23/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
Member
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1545/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1545/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
therealsilvercdccd : Press win+R and type in joy.cpl Click advanced and choose the xbox controller as the preferred device and click ok. |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
therealsilvercdccd is Offline
Level: 12
POSTS: 24/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
POSTS: 24/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
vanelan : Did it. It's still not working with Mupen |
Member
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1556/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1556/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
therealsilvercdccd : Check to see if the config file has this in it: |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
therealsilvercdccd is Offline
Level: 12
POSTS: 25/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
POSTS: 25/25
POST EXP: 835
LVL EXP: 6270
CP: 1162.4
VIZ: 49772
Member
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
Affected by 'Laziness Syndrome'
Registered: 07-26-12
Last Post: 1717 days
Last Active: 1170 days
DLCJRpc is Offline
DLCJRpcLevel: 19
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/100598-1347160000.jpg'>
POSTS: 69/70
POST EXP: 3439
LVL EXP: 32188
CP: 66.8
VIZ: 7768
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/100598-1347160000.jpg'>
POSTS: 69/70
POST EXP: 3439
LVL EXP: 32188
CP: 66.8
VIZ: 7768
vanelan : I found that part, but how would I set it up so that the PS3 d-pad would be the C buttons instead of the R3 stick? I'm using the Better DS3 to connect my controller if that helps. |
(A sometimes) Tactical Demoman |
Affected by 'Laziness Syndrome'
Registered: 03-10-11
Last Post: 1706 days
Last Active: 1196 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1576/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1576/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
DLCJRpc : What does the controller show up as in Windows? |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
DLCJRpc is Offline
DLCJRpcLevel: 19
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/100598-1347160000.jpg'>
POSTS: 70/70
POST EXP: 3439
LVL EXP: 32188
CP: 66.8
VIZ: 7768
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/100598-1347160000.jpg'>
POSTS: 70/70
POST EXP: 3439
LVL EXP: 32188
CP: 66.8
VIZ: 7768
vanelan : Controller (XBox 360 Wireless Receiver for Windows) |
(A sometimes) Tactical Demoman |
Affected by 'Laziness Syndrome'
Registered: 03-10-11
Last Post: 1706 days
Last Active: 1196 days
Spicy is Offline
Spicyimamonster
Level: 94
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/319713-1485784186.jpg'>
POSTS: 1692/3058
POST EXP: 192542
LVL EXP: 8211657
CP: 11797.1
VIZ: 19245
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/319713-1485784186.jpg'>
POSTS: 1692/3058
POST EXP: 192542
LVL EXP: 8211657
CP: 11797.1
VIZ: 19245
It did not work. I tried to reconfigure it for different keys on my keyboard, But they did not change. |
Trusted Member
Affected by 'Laziness Syndrome'
Registered: 01-01-13
Last Post: 753 days
Last Active: 439 days
Affected by 'Laziness Syndrome'
Registered: 01-01-13
Last Post: 753 days
Last Active: 439 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1659/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1659/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
imamonster : Did you set the corresponding keycodes and not the letters themselves? Also, did you save then write protect the file? |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
treos is Offline
treosLevel: 28
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/88644-1414132834.png'>
POSTS: 17/177
POST EXP: 17466
LVL EXP: 130648
CP: 813.9
VIZ: 7784
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/88644-1414132834.png'>
POSTS: 17/177
POST EXP: 17466
LVL EXP: 130648
CP: 813.9
VIZ: 7784
just took a look at that config file and... *facepalm* could i just get some info on what the default config is in a less text mountain format please? i mean, thats just a single LONG string of text as a text wall, i can't read it. ok ok, left shift = A, left ctrl = B, Z = Z... enter = start, arrow keys are the...d-pad, i think? not sure what the joystick and c-pad keys are yet. |
Member
Affected by 'Laziness Syndrome'
Registered: 01-12-11
Last Post: 280 days
Last Active: 4 days
Affected by 'Laziness Syndrome'
Registered: 01-12-11
Last Post: 280 days
Last Active: 4 days
Vanelan is Offline
VanelanLevel: 140
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1685/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/374776-1450954428.png'>
POSTS: 1685/7903
POST EXP: 297207
LVL EXP: 33206549
CP: 55196.6
VIZ: 2806
treos : That will happen if you open it in notepad. You need to open it in wordpad or another program that can read formatting properly. |
Vizzed Elite
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
Affected by 'Laziness Syndrome'
Registered: 05-05-13
Location: New Yawk
Last Post: 198 days
Last Active: 198 days
treos is Offline
treosLevel: 28
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/88644-1414132834.png'>
POSTS: 18/177
POST EXP: 17466
LVL EXP: 130648
CP: 813.9
VIZ: 7784
114 ? '115px' : 'auto' ); max-width:115px; margin-bottom:2px;' src='//www.vizzed.com/boards/userimages/userpics/88644-1414132834.png'>
POSTS: 18/177
POST EXP: 17466
LVL EXP: 130648
CP: 813.9
VIZ: 7784
huh, ok, well i managed to figure out the default controls not long after posting here actually. funny thing, the default controls actually seem to be easier for me to use than how i usually set them in the 1964 emulator (might have to change them to match the mupen settings next time i use 1964). those i listed in my previous post actually make it fairly easy to play, yay for that good news. |
Member
Affected by 'Laziness Syndrome'
Registered: 01-12-11
Last Post: 280 days
Last Active: 4 days
Affected by 'Laziness Syndrome'
Registered: 01-12-11
Last Post: 280 days
Last Active: 4 days
Next Page >
Last Page >>
RetroArch is the official front end for the libretro API. RetroArch and libretro provide a way to take an existing emulator and load that emulator as a library or 'core'. RetroArch then handles the input (controls) and output (graphics and audio) while the emulator core handles the emulation of the original system. With a few simple changes to the emulator source code, almost any existing emulator could become a libretro core.
In RetroPie, the libretro emulator cores are identified with a
lr-
in front of their name. For example, lr-snes9x2010
is the libretro core of the SNES emulator called snes9x2010.RetroArch and libretro provide ability to configure controllers once for many emulators instead of having to configure each emulator individually. However, RetroArch also provides the freedom to configure specific emulators individually and even individual games differently if the user wants. This allows a specific setting or button mapping for a certain console or even just for a certain game.
For emulators which are not libretro cores, there are emulator-specific configurations under the respective system's wiki page.
The RetroPad concept
When you configure your controller in EmulationStation, the RetroPie setup script automatically configures RetroArch with the same controls.
RetroArch controls map real-world controller buttons to a virtual controller called a 'RetroPad'. A RetroPad does not exist in real life, it's a concept only within RetroArch. A RetroPad has an ABXY layout like a SNES controller plus four shoulder buttons and dual analog sticks like a Sony DualShock.
You don't have to map all of the RetroPad buttons to a real world button. If your real controller has less buttons than a DualShock, then the virtual RetroPad also has less buttons, that's perfectly fine.
As RetroArch starts an emulator core, it maps the RetroPad configuration to the emulated system's original controls. The mapping for many consoles is represented by the pictures below and on each system's wiki page. If you wish, you can reconfigure this control mapping, either for all RetroArch, for a specific system, or even for a specific ROM.
Retroarch Controls
There are 3 main ways to configure input for RetroArch:
- Autoconfigurations - made in EmulationStation
- Hardcoded Configurations - made by editing
retroarch.cfg
file(s) - Core Input Remapping - an easy way to do specific control configurations for specific cores, made in the RetroArch RGUI
AutoConfigurations
RetroArch controls have been integrated into EmulationStation and will be the first thing you see when you boot from the RetroPie SD image the first time. You can also access it from the start menu within EmulationStation under the Configure Input option. Your joypad is automagically configured for libretro (RetroArch) emulators when you configure your controller in EmulationStation. You'll know if your controller has been automagically configured if you see a flash of yellow text on the bottom of the screen with your gamepad ID when you start a game.
The following diagrams are for the 3 most common controllers: Super Nintendo, Xbox 360, and PlayStation 3. They can be used as a reference when configuring your controllers. Each emulator page on the wiki has a diagram of the original controller for its respective console that will correspond to the same inputs listed below.
After you've configured your controller the autoconfig will be created here:
This is an example config for a USB SNES controller
As seen above in the config for the USB SNES controller, each input on the controller has an associated value. When setting up the controller in EmulationStation, these values are then assigned a respective action on RetroArch.
For example, suppose the 'A' button on a USB SNES controller has a value of '1.' When setting up the controller, EmulationStation would prompt you to press the 'A' button on your controller. Pressing the 'A' button would then record into the config file as
input_a_btn = '1'
, so RetroArch will know that the 'A' button on your physical controller corresponds to the 'A' button on RetroArch's virtual controller, the RetroPad. Therefore, the next time you play a game such as Super Mario Bros. pressing the 'A' button will tell RetroArch to press the 'A' button on its RetroPad, causing Mario to jump. If you accidentally pressed the 'B' button with a value of '2' during setup when it prompted for 'A,' then it would be recorded into the config file as input_a_btn = '2'
, so if you want to jump in Super Mario Bros., you would have to press 'B' on your controller.Hotkeys
Hotkeys are combinations of buttons you can press in order to access options such as saving, loading, and exiting games. The following defaults are set automatically the first time you set up your controller from EmulationStation (the numbers will vary depending the controller you use).
Default joypad hotkeys:
Hotkeys | Action | Code Example |
---|---|---|
Select | Hotkey | input_enable_hotkey_btn = '6' |
Select+Start | Exit | input_exit_emulator_btn = '7' |
Select+Right Shoulder | Save | input_save_state_btn = '5' |
Select+Left Shoulder | Load | input_load_state_btn = '4' |
Select+Right | Input State Slot Increase | input_state_slot_increase_btn = 'h0right' |
Select+Left | Input State Slot Decrease | input_state_slot_decrease_btn = 'h0left' |
Select+X | RGUI Menu | input_menu_toggle_btn = '3' |
Select+B | Reset | input_reset_btn = '0' |
Determining Button Values
If you want to edit the entries in the .cfg file for your controller, you will need to know the values corresponding to the buttons on your controller. Usually the relationship between the two can be deduced by looking at the file and noting the entries' names along with the values next to them, assuming that the values have not been jumbled from previous edits or been mixed up due to unknown issues. For example, the USB gamepad above has an entry for
input_x_btn = '0'
, indicating that the 'X' button on the controller (or the button that you associated as 'X' during controller setup in EmulationStation) has a value of '0.'On the other hand, maybe you are not sure if the values in the .cfg file is correct or the file is missing entries for buttons that are available on your own controller, such as a 'Home' button. You can run jstest (joystick test) in the terminal by selecting Quit EmulationStation (a keyboard will be required for the following steps).
In the terminal, type and enter
jstest /dev/input/js0
Replace js0 with js1, js2, js3, etc. as needed if not detected.
A multitude of rows and columns should appear. Pressing buttons or moving analog sticks/joystick will cause various entries in the columns to swap between on and off and fluctuate through a range of numbers. The value next to an on/off entry corresponds to the button that you have pressed. The fluctuation of numbers from -32767 to 32767 correspond to the input on your controller that has a range of motion, such as analog sticks/triggers.
If you are interested in figuring out which is your 'Select' button, pressing and holding 'Select' on your controller will cause one column to switch from off to on. The value next to it corresponds to the 'Select' button. If you have a controller with a 'Home' button, pressing the 'Home' button will also cause one column to switch from off to on. To exit jstest, press
Ctrl + c
. To return to EmulationStation from the terminal, type and enter emulationstation
.Using these values, you can edit the .cfg file for that controller as needed. For example, if you were interested in switching the default 'Select' button as your Hotkey button to a 'Home' button available on your controller, you would edit
input_enable_hotkey_btn = 'some number'
, replacing 'some number' with the value you found for your 'Home' button in jstest.Video Tutorial
Hardcoded Configurations
These configurations are manual edits you can make that are locked to a specific libretro core and controller. Hardcoded controls can be configured either globally, specific to the emulator core, or specific to an individual game.
Config Hierarchy
All RetroArch based emulators can be configured in the following way:
Global settings - that are settings which should apply to all systems - are done in the file:
(example)
System-specific settings are done in the files:
(example)
Here, SYSTEMNAME is
atari2600
, snes
, etc. All settings in these files will override the corresponding global setting as long as they are placed above the #includeconfig
line.ROM-specific settings can be created in the runcommand menu and show up as configuration files by ROM title:
(example)
The
ROMNAME
includes the original file extension before the .cfg
, e.g. supermariobros.zip.cfg
These configurations are used when starting this specific ROM.Custom RetroArch Override Examples
Example Default Per-System retroarch.cfg
Example Per-System Control Override retroarch.cfg
Note the values below are for one person's controller, your values may differ. Make sure that these values are placed above the
#includeconfig
line:Example Per-ROM Override retroarch.cfg
Core Input Remapping
Core Input Remapping differs from the other two methods as it remaps how the core receives input rather than how the gamepad is coded, for example you can tell the snes core to switch button A and B on the controller for gameplay, but you can still use 'A' to select in the RGUI and 'B' to go back where as hard-coding would make B select and A back. Core Remapping is much more practical than hard-coded mapping but is limited to the cores that support it.
Quick way to do it:
- Start a game of the system you want to remap the buttons
- Invoke RGUI (Select+X with player 1)
- Go to Quick Menu and then Controls
- Configure the buttons the way you want
- Select Save Core Remap File
- OR, if you want to save this remapping for the current game only, select Save Game Remap File
Retroarch Controls Cheat-Sheet
Video Tutorials
- Core input remapping: Remapping your controller by Floob
- Testing Joypad: Testing joystick by Floob
- Configuring USB Controllers With Retroarch, Controller not configured fix by Herb Fargus
- Configure a wireless PS3 controller with RetroPie 3 by Floob
- XBox 360 Wireless Controller Configuration by Herb Fargus