1. Connect a supported controller
On official v0.1.4 and current upstream main, AnyPS5 assigns up to four SDL-recognized controllers to Players 1–4 in connection order; controllers can be connected or disconnected while a title runs. Sticks and analog triggers are passed through. On Xbox-layout controllers, A/B/X/Y correspond to Cross/Circle/Square/Triangle, and LB/RB and LT/RT correspond to L1/R1 and L2/R2. Recognized PlayStation controllers forward touchpad clicks and the coordinates of up to two fingers. Use the matching release documentation for version-specific controls. Upstream controller specification ↗
2. Create anyps5-input.ini for keyboard and mouse
With no configuration file, built-in keyboard and mouse bindings apply. To override specific actions, create anyps5-input.ini next to the generated game executable, not beside the Relinker. Set ANYPS5_INPUT_CONFIG to point to another file if needed. Keyboard overrides do not disable game-controller bindings.
3. Copy a valid configuration example
# anyps5-input.ini
Cross = KEY:F
Cross = KEY:Space
LeftStickLeft = KEY:J
LeftStickRight = KEY:L
LeftStickUp = KEY:I
LeftStickDown = KEY:K
Square = MOUSE:Left
R2 = MOUSE:Right
ToggleMouse = MOUSE:MiddleHere, Cross accepts F or Space, the left stick uses I/J/K/L, and mouse buttons control Square and R2. Actions not listed retain their built-in bindings. The lines come from the official mapping example ↗.
4. Understand action and input syntax
| Input | Syntax | Example |
|---|---|---|
| Keyboard | KEY:SDLName | Cross = KEY:Return |
| Mouse button | MOUSE:Button | Square = MOUSE:Left |
| Mouse wheel | WHEEL:Direction | Options = WHEEL:Up |
Each line follows Action = Type:Value. Action names are case-insensitive; # and ; start comments. The first mapping for an action replaces its defaults, and further lines add alternatives. Duplicate mappings are ignored. Save the file as UTF-8 (a BOM is accepted).
Supported actions include Cross, Circle, Triangle, Square, L1/R1/L2/R2, L3/R3, Options, D-pad directions, both sticks' directions, TouchLeft, TouchRight, ToggleMouse, and ToggleFullscreen. The authoritative complete action list is in INPUT_MAPPING.md ↗.
Select the mouse-controlled stick (v0.1.4)
Official v0.1.4 includes merged PR #13463. When mouse-to-stick input is enabled with ToggleMouse, mouse motion controls the right analog stick by default. To control the left stick instead, add this setting manually to the same anyps5-input.ini:
MouseStickTarget = Left
Valid values are Left and Right, case-insensitive; Right is the default. The other stick retains its controller input. The built-in ToggleMouse bindings are F7 and middle mouse button; the example above replaces them with middle mouse only. Invalid, empty or duplicate setting values fail configuration parsing. See the v0.1.4 input specification ↗.
5. Resolve input configuration errors
An invalid line reports the file and line number and stops input initialization. If ANYPS5_INPUT_CONFIG points to a file that cannot be read, AnyPS5 reports an error. Correct the named line or path; remove the override to return to the built-in mapping. See the troubleshooting guide for startup and runtime errors.
6. Generate an input file with the upstream browser editor
The official v0.1.4 source tree includes a browser input mapper for keyboard, mouse and wheel overrides. It can import an INI, find actions, capture keys, flag conflicts, preview changes and download anyps5-input.ini. It does not remap physical controllers or run a game. This editor was merged in PR #3456 on 26 October, after v0.1.3 and before v0.1.4.
From an official AnyPS5 source checkout, install Node.js 22 or later and run:
npm --prefix tools/input-mapper startOpen http://127.0.0.1:4173 locally. No package installation is required. Copy or download the INI before reloading the editor, then place it beside the generated game executable. The upstream project has not published this editor on its GitHub Pages site; this command runs it locally. See the upstream configurator instructions ↗.
v0.1.4 tag and current upstream documentation. For other versions, check the matching tagged documentation. Primary source: input mapping ↗