Repository navigation
DOR2 Static Recomp v0.1.9 (canonical controller system)
Controllers: one canonical profile, positional/nintendo classes, no profile
rewriting, first-pad fallback + hot-plug.
Replaces the per-device controller system (GUID tables, profile generation,
launch-time migration, name heuristics, the a>b rule and the D-pad swap) with
the canonical design proven in WWE WrestleMania X8 Recomp v0.1.4.
What changed for players
GCPadNew.iniis written once and never rewritten. It holds one positional
binding set. Swapping pads, unplugging, replugging: the file stays byte
identical (verified across boots).- Button order follows the pad, not the file. Two classes:
positional(default) - A/B/X/Y match the SDL positions, like Xbox,
PlayStation and every generic pad;nintendo- A<->B and X<->Y only, so the printed labels match. The D-pad,
sticks and triggers are never touched.
The class is resolved per pad fromSDL_GetGamepadTypeat input init, with one
tiny vendor fallback for 8BitDo Switch-mode firmware that reports an unknown
type.
- No pad at boot is harmless. The profile is kept as-is; when a pad is
switched on later it is bound by a 2 s watcher - no restart, no rewrite. - First-pad fallback without editing files. If the configured device is
absent, the runtime binds the first enumerated gamepad in memory
(SetDefaultDevice+UpdateReferences) and logs
controller: configured device missing; bound "...". A stale
Device = SDL/0/<old name>left by an older build is harmless; deleting
Config\GCPadNew.iniregenerates the canonical one but is optional. - Override:
controller_class = auto|positional|nintendoinconfig.ini, or
--controller-layout positional|nintendo(legacy valuesstandard/switch/
xbox/playstationare accepted;keyboardselects the keyboard device).
The launcher's controller page has a three-entry Auto / Positional / Nintendo
picker.
Startup line (please quote it in a bug report)
controller: name="SDL/0/Xbox One Controller" guid=0300fa675e0400... vid=045e pid=02ff sdl_type=3 class=auto (per pad) dpad=normal profile=static
controller: configured device missing; bound "SDL/0/<pad>" (only when it had to fall back)
DOR2RecompRunner.exe --list-controllers prints the same line without starting
the game.
Deleted
Per-device GUID tables (DualSense Edge / Xbox Elite product lists), the
DetectControllerMapping / GenerateControllerConfig / EnsureControllerConfig
profile generator and its migration, the a>b Nintendo heuristic, the
button-index D-pad swap, and the launch-time profile rewrite. Only SDL-level
knowledge remains (the missing DualSense Edge USB mapping row is still registered
so the pad is recognised as a gamepad at all; it no longer influences layout).
Verified
- Offline matrix (
scripts\test-controller-matrix.ps1): 37 checks PASS - class
per SDL type (Xbox 360/One, DS3/DS4/DualSense/Edge, standard/generic, GameCube
adapter, Switch Pro, Joy-Con L/R/pair), 8BitDo Switch-mode fallback, override
precedence,controller_classparsing incl. legacy keys, canonical profile
content, write-once (byte identical), keyboard profile, config round-trip. - Native
frontend_config_test: PASS. - Real hardware, visible window: Xbox One Controller (
045e:02ff,
sdl_type=3) ->class=auto (per pad)(positional), canonical profile written
with that device, profile SHA identical across two boots, Vulkan boot to
speed. Stale-device profile case: file untouched, runtime logged
bound "SDL/0/Xbox One Controller". - Not verified: physical pressing of A/B/X/Y on each family (no Switch/8BitDo
hardware here), and true hot-plug (requires unplugging the pad mid-session).
The watcher and binding path are the same code the startup fallback used.
Known limits (from the design)
- Pads exposing A/B/X/Y without a recognised SDL type are positional; the
override covers them. - Only port 1 is bound by the canonical profile.
Unchanged
Memory card (raw slot A, empty slot B, migration), launcher renderer/60 fps fix,
JIT default, RVZ support.