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 [2023/02/04 22:05] – [Default light gun mapping] changed the entire button mapping name as shown on the official website tovarichtch | 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 === | === libretro: PUAE/VICE === | ||
| Line 102: | Line 102: | ||
| 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. | 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 ==== | ==== Define a system-wide pad2key mapping ==== | ||
| - | The first thing to do is to select a game and press '' | + | The first thing to do is to select a game in the game list and press '' |
| {{ : | {{ : | ||
| Line 117: | Line 119: | ||
| {{ : | {{ : | ||
| {{ : | {{ : | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | To create a mapping to send a combination (" | ||
| + | </ | ||
| + | |||
| ==== Pad2key configuration file ==== | ==== Pad2key configuration file ==== | ||
| - | Once your pad2key configuration is done for a specific game, it stays saved as a '' | + | Once your pad2key configuration is done for a specific game, it stays saved as a '' |
| { | { | ||
| Line 152: | Line 159: | ||
| ] | ] | ||
| } | } | ||
| + | |||
| + | === Action profiles === | ||
| - | === Button names === | + | A singular keys file may contain the action profiles for multiple players. '' |
| - | The gamepad buttons are referred to specific values, they are as follow | + | < |
| + | { | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ], | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | 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 UP : '' | ||
| Line 183: | Line 257: | ||
| * '' | * '' | ||
| - | === Keyboard key names === | + | == 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 '' | The targeted keyboard key uses the same names as the ones reported by triggerhappy events they can be displayed using the '' | ||
| * Alphabetical keys | * Alphabetical keys | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| * Number key (not the numpad) | * Number key (not the numpad) | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| * Numpad keys | * Numpad keys | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * **%%*%%** : '' | + | * **%%*%%** : '' |
| * Function keys | * Function keys | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| === External sources === | === External sources === | ||
| - | Alternatively Pad2keys config files can be [[: | + | Alternatively Pad2keys config files can be [[: |
| You can find some examples from the [[: | You can find some examples from the [[: | ||
| Line 210: | Line 302: | ||
| === Launching commands with the pad2key === | === 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, you need to replace | + | As you saw earlier, the pad2key can be used to simulate keyboard presses, however, it can also be used to launch specific commands. Replace |
| For example: | For example: | ||
| Line 377: | 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=" | ||
| + | </ | ||
| </ | </ | ||
- remapping_controls_per_emulator.1675548338.txt.gz
- Last modified: 3 years ago
- by tovarichtch