Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| emulators:pad2key [2021/12/13 08:10] – ↷ Links adapted because of a move operation 180.233.126.251 | emulators:pad2key [2021/12/26 09:08] (current) – removed atari | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======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. | ||
| - | |||
| - | =====Define a new pad2key mapping===== | ||
| - | |||
| - | The first thing to do is to select a game and press '' | ||
| - | |||
| - | In the first case, it'll create a config system-wide, | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | Then you will have the option to select keys for each button/axis on your gamepad, both for player 1 and player 2. For each button/ | ||
| - | |||
| - | {{ : | ||
| - | {{ : | ||
| - | |||
| - | =====Configuration file===== | ||
| - | |||
| - | Once your pad2key configuration is done for a specific game, it stays saved as a '' | ||
| - | |||
| - | { | ||
| - | " | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | ], | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | ] | ||
| - | }, | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | ] | ||
| - | } | ||
| - | |||
| - | ==== Button names ==== | ||
| - | |||
| - | The gamepad buttons are referred to specific values, they are as follow : | ||
| - | |||
| - | * D-Pad UP : '' | ||
| - | * D-Pad DOWN : '' | ||
| - | * D-Pad LEFT : '' | ||
| - | * D-Pad RIGHT : '' | ||
| - | * Start : '' | ||
| - | * Select : '' | ||
| - | * A (East) : '' | ||
| - | * B (South) : '' | ||
| - | * X (North) : '' | ||
| - | * Y (West) : '' | ||
| - | * Left stick UP : '' | ||
| - | * Left stick DOWN : '' | ||
| - | * Left stick LEFT : '' | ||
| - | * Left stick RIGHT : '' | ||
| - | * Right stick UP : '' | ||
| - | * Right stick DOWN : '' | ||
| - | * Right stick LEFT : '' | ||
| - | * Right stick RIGHT : '' | ||
| - | * L1 : '' | ||
| - | * R1 : '' | ||
| - | * L2 : '' | ||
| - | * R2 : '' | ||
| - | * L3 : '' | ||
| - | * R3 : '' | ||
| - | * Hotkey : '' | ||
| - | |||
| - | ==== 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 | ||
| - | * **A** : '' | ||
| - | * **Z** : '' | ||
| - | * Number key (not the numpad) | ||
| - | * **1** : '' | ||
| - | * **0** : '' | ||
| - | * Numpad keys | ||
| - | * **0** : '' | ||
| - | * **1** : '' | ||
| - | * **%%*%%** : '' | ||
| - | * Function keys | ||
| - | * **Escape** : '' | ||
| - | * **F1** : '' | ||
| - | * **Enter** : '' | ||
| - | |||
| - | ==== 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, you need to replace the ''" | ||
| - | |||
| - | for exemple: | ||
| - | |||
| - | < | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | ], | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| - | can be used to launch the '' | ||
- emulators/pad2key.1639383039.txt.gz
- Last modified: 4 years ago
- by 180.233.126.251