Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| remapping_controls_per_emulator [2021/11/22 06:14] – [Remapping controls per emulator] atari | remapping_controls_per_emulator [2024/10/31 16:04] (current) – Fix typo in a path lbrpdx | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| If you receive an error message saying something similar to " | If you receive an error message saying something similar to " | ||
| * ''/ | * ''/ | ||
| - | * ''/ | + | * ''/ |
| If they don't exist, create them and try again. | If they don't exist, create them and try again. | ||
| Line 57: | Line 57: | ||
| You may have noticed the " | You may have noticed the " | ||
| - | Remap files are saved to ''/ | + | Remap files are saved to ''/ |
| + | |||
| + | === libretro: PUAE/VICE === | ||
| + | |||
| + | Controls for these computer emulators are stored in its core options, accessed via **Quick Menu** -> **Options** -> **RetroPad Mapping Options**. These take whatever you have assigned to the equivalent button in the **Controls** menu to another controller layer unique to this core. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Then change your keymaps as appropriate. PUAE/VICE have decided to use the SNES layout for reference here, so A is {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Once you're done, back out one menu and scroll up to **Manage Core Options**. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | To save the remapping for just this game, **Save Game Options**. Otherwise, to apply it to all games in the same folder as this game, **Save Content Directory Options**. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== MAME ===== | ||
| <WRAP center round todo> | <WRAP center round todo> | ||
| - | Information on particular cases and exceptions for particular RetroArch cores need to be added here. | + | Massively improve this section. |
| </ | </ | ||
| - | ===== DosBox standalone | + | MAME machines can be remapped in-game: |
| + | - Press '' | ||
| + | - Go to **Input for this game** and press '' | ||
| + | - Select the desired input to remap and press '' | ||
| + | * Inputs can be cleared by double-tapping '' | ||
| + | |||
| + | Remap configuration files are stored at '' | ||
| + | |||
| + | ===== Pad2key ===== | ||
| + | |||
| + | This functionality can help you create a per-game mapping of your controller to keyboard keys, in order to play games from old computers like Apple II, Sinclair or DOS and Windows games that are finicky with their joypad support. | ||
| + | |||
| + | It can also, to some extent, be used to define additional emulator command shortcuts from the controller (such as force-closing the emulator with '' | ||
| + | |||
| + | ==== Define a system-wide pad2key mapping ==== | ||
| + | |||
| + | The first thing to do is to select a game in the game list and press '' | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | If a game has a config setting for itself, it'll not use the system-wide config at all, so editing the system-wide config will have no effect on the game itself. | ||
| + | </ | ||
| + | |||
| + | From there, select a key for each button on your Batocera RetroPad for Player 1 and/or Player 2. | ||
| + | |||
| + | {{ : | ||
| + | {{ : | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | To create a mapping to send a combination (" | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Pad2key configuration file ==== | ||
| + | |||
| + | Once your pad2key configuration is done for a specific game, it stays saved as a '' | ||
| + | |||
| + | { | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | |||
| + | === Action profiles === | ||
| + | |||
| + | A singular keys file may contain the action profiles for multiple players. '' | ||
| + | |||
| + | < | ||
| + | { | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | In Batocera **v37** and above, light guns can also contain their own actions. These are unique to the light guns, and thus use their own actions profile: '' | ||
| + | |||
| + | < | ||
| + | { | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | === Triggers === | ||
| + | |||
| + | == Batocera Retropad names == | ||
| + | |||
| + | The gamepad buttons are referred to specific values, they are as follows: | ||
| + | |||
| + | * D-Pad UP : '' | ||
| + | * D-Pad DOWN : '' | ||
| + | * D-Pad LEFT : '' | ||
| + | * D-Pad RIGHT : '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * Left stick UP : '' | ||
| + | * Left stick DOWN : '' | ||
| + | * Left stick LEFT : '' | ||
| + | * Left stick RIGHT : '' | ||
| + | * Right stick UP : '' | ||
| + | * Right stick DOWN : '' | ||
| + | * Right stick LEFT : '' | ||
| + | * Right stick RIGHT : '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * Push in '' | ||
| + | * Push in '' | ||
| + | * '' | ||
| + | |||
| + | == Batocera light gun == | ||
| + | |||
| + | Most Batocera light guns will automatically map themselves as a virtual keyboard and pointer device, associating their ID with a particular player controller. More info on each individual light gun mapping can be found on [[emulators: | ||
| + | |||
| + | * Primary fire : '' | ||
| + | * Secondary fire : '' | ||
| + | * '' | ||
| + | * Aux button 1 : '' | ||
| + | * Aux button 2 : '' | ||
| + | * Aux button 3 : '' | ||
| + | * Aux button 4 : '' | ||
| + | * UP : '' | ||
| + | * DOWN : '' | ||
| + | * LEFT : '' | ||
| + | * RIGHT : '' | ||
| + | |||
| + | === Targets === | ||
| + | |||
| + | == Keyboard key names == | ||
| + | |||
| + | The targeted keyboard key uses the same names as the ones reported by triggerhappy events they can be displayed using the '' | ||
| + | |||
| + | * Alphabetical keys | ||
| + | * '' | ||
| + | * '' | ||
| + | * Number key (not the numpad) | ||
| + | * '' | ||
| + | * '' | ||
| + | * Numpad keys | ||
| + | * '' | ||
| + | * '' | ||
| + | * **%%*%%** : '' | ||
| + | * Function keys | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | === External sources === | ||
| + | |||
| + | Alternatively Pad2keys config files can be [[: | ||
| + | |||
| + | You can find some examples from the [[: | ||
| + | |||
| + | === Launching commands with the pad2key === | ||
| + | |||
| + | As you saw earlier, the pad2key can be used to simulate keyboard presses, however, it can also be used to launch specific commands. Replace the ''" | ||
| + | |||
| + | For example: | ||
| + | |||
| + | < | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | can be used to launch the '' | ||
| + | |||
| + | ==== DosBox standalone ==== | ||
| A part of the configuration of [[systems: | A part of the configuration of [[systems: | ||
| Line 214: | Line 469: | ||
| <input name=" | <input name=" | ||
| <input name=" | <input name=" | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | <file - input.xml - V38 and later> | ||
| + | < | ||
| + | < | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | </ | ||
| + | <!-- Alt inputs for n64 style controllers --> | ||
| + | < | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | <input name=" | ||
| + | </ | ||
| </ | </ | ||
| Line 232: | Line 550: | ||
| ===== Dolphin ===== | ===== Dolphin ===== | ||
| - | <WRAP center round todo 60%> | + | Remapping Dolphin' |
| - | Gotta confirm Wii settings. | + | |
| - | </WRAP> | + | |
| ==== Wii ==== | ==== Wii ==== | ||
| - | Firstly, if you'd like Batocera | + | <WRAP center round tip> |
| + | The simplest solution | ||
| + | </ | ||
| - | If you prefer to use Dolphin's interface for configuring controls instead of Batocera' | + | Firstly, if you'd like Batocera |
| - | FIXME | + | If you prefer to use Dolphin' |
| + | |||
| + | <WRAP center round important> | ||
| + | A mouse and keyboard will be required to navigate these menus. | ||
| + | </ | ||
| + | |||
| + | On the system menu, open Files with '' | ||
| + | |||
| + | {{emulators: | ||
| + | |||
| + | Ensure " | ||
| + | |||
| + | {{: | ||
| + | |||
| + | This will open the controller configuration menu. Make sure the controller you intend to use is selected at the top-left of the window. For instance, here the Xbox controller is being selected to emulate the Wiimote: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Set up your emulated Wiimote as you'd like, and then save your profile in the top-right of the window. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | <WRAP center round info> | ||
| + | The control panel itself is intuitive and easy to follow, but has extremely powerful scripting features. Further documentation available at https:// | ||
| + | </ | ||
| + | |||
| + | And now your controller is remapped in Dolphin. The profile used will be the last selected profile in Dolphin' | ||
| ==== GameCube ==== | ==== GameCube ==== | ||
| Line 278: | Line 622: | ||
| {{emulators: | {{emulators: | ||
| - | And now your controller is remapped in Dolphin. | + | And now your controller is remapped in Dolphin. |
| - | + | ||
| - | <WRAP center round todo 60%> | + | |
| - | This needs to be tested with other controllers. | + | |
| - | </ | + | |
| <WRAP center round info> | <WRAP center round info> | ||
| The control panel itself is intuitive and easy to follow, but has extremely powerful scripting features. Further documentation available at https:// | The control panel itself is intuitive and easy to follow, but has extremely powerful scripting features. Further documentation available at https:// | ||
| </ | </ | ||
| + | |||
| + | ==== Save per-game remap profiles ==== | ||
| + | |||
| + | Controller remaps can be applied to specific games via '' | ||
| + | |||
| + | After creating and saving a custom profile, go back to Dolphin' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Go into **Properties**. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Go into **Editor**. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Then in the "User Config" | ||
| + | |||
| + | < | ||
| + | [Controls] | ||
| + | PadProfile1 = < | ||
| + | </ | ||
| + | |||
| + | where ''< | ||
| + | |||
| + | For setting this profile for more than just player 1, append the following: | ||
| + | |||
| + | < | ||
| + | PadProfile2 = < | ||
| + | PadProfile3 = < | ||
| + | PadProfile4 = < | ||
| + | </ | ||
| + | |||
| + | Not all players have to use the same profile. An example user config might look like this: | ||
| + | |||
| + | < | ||
| + | [Controls] | ||
| + | PadProfile1 = triggers on L2 R2 | ||
| + | PadProfile2 = triggers on L2 R2 | ||
| + | PadProfile3 = triggers on L1 R1 | ||
| + | PadProfile4 = Peters super cool custom config | ||
| + | </ | ||
| ===== Controllers with only one analog stick ===== | ===== Controllers with only one analog stick ===== | ||
| Line 306: | Line 689: | ||
| If you'd like to reconfigure the default keyboard bindings for all systems emulated by a libretro core (such as if you don't have a controller to use or you're in an all-in-one device like a netbook), refer to [[: | If you'd like to reconfigure the default keyboard bindings for all systems emulated by a libretro core (such as if you don't have a controller to use or you're in an all-in-one device like a netbook), refer to [[: | ||
| + | |||
| + | ===== Default light gun mappings ===== | ||
| + | |||
| + | Here are the default light gun mappings, in case you're configuring an emulator which does not support "press the button to map" remapping functionality: | ||
| + | |||
| + | ^ Global keyboard/ | ||
| + | | BTN_LEFT | ||
| + | | BTN_RIGHT | ||
| + | | BTN_MIDDLE | ||
| + | | BTN_1 | MINUS | KEY_PREVIOUS | ||
| + | | BTN_2 | 1 | BTN_1 | Back right | KEY_2 | SELECT | ||
| + | | BTN_3 | 2 | BTN_2 | – | – | – | – | – | – | 3 | BTN_3 | – | – | B | BTN_3 | | ||
| + | | BTN_4 | HOME | BTN_MODE | ||
| + | | BTN_5 | ↑ | KEY_UP | ||
| + | | BTN_6 | ↓ | KEY_DOWN | ||
| + | | BTN_7 | ← | KEY_LEFT | ||
| + | | BTN_8 | → | KEY_RIGHT | ||
- remapping_controls_per_emulator.1637561673.txt.gz
- Last modified: 5 years ago
- by atari