Skip to content

Native remapper, USB pad profiles and the pad_mapper service - #1

Merged
DefKorns merged 37 commits into
masterfrom
om_version
Oct 20, 2026
Merged

DefKorns merged 37 commits into
masterfrom
om_version

Conversation

@DefKorns

@DefKorns DefKorns commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner
  • Replace the old remapper with a native C++/SDL app built on the Options Menu engine
  • Add pad_mapper, a background service that translates USB pads into the virtual front-port controller, with per-model mappings and ready-made profiles (DualShock 4, PlayStation Classic, Xbox 360, Krom Kumite)
  • Show buttons by their names instead of raw codes; pad_mapper is paused only while a button is being captured, so a USB pad can still navigate the menu
  • Link pad_mapper against the Options Menu's private libstdc++ (needed with RetroArch 1.8.4 Xtreme SC)
  • Validate target axes, read the Home combo setting on every evaluation and drop a stale pause flag
  • Wiki: https://github.com/DefKorns/om-gamepad-remapping-tool/wiki

Tested on the console with a DualShock 4, a wired Xbox 360 controller, a Krom Kumite stick and a Wii Classic Controller in the front port.

Replace the shell flow (raw evdev bytes, PNG prompts, reboot to apply)
with gamepad_remapper, built on the Options Menu framework. It reads the
Clovercon through SDL, so every binding uses the indices Canoe and
Kachikachi see, lists the current mapping, remaps one button or all of
them with skip-on-timeout, and applies on save by binding the new
gamecontrollerdb.txt over /etc/sdl2, with no reboot. Restore defaults
undoes it. The entry moves to Advanced Options > Controller.

Build and release through hmod-build, with the Options Menu, toolchain
and hmod-build submodules.
pad_mapper grabs each USB pad that has a map in inputs/pads/, translates
its raw buttons, hats and axes, and injects them into the virtual
Clovercon hakchi made for it, so games keep their player slots and the
front pads are untouched. It sends Home on the pad's Down+Select when
the Home Combo is on. The remapper now starts by picking the front
ports or a USB pad by its real name, and captures USB pads raw.
pad_mapper falls back to inputs/profiles/<vendor>_<product>.map when a
pad has no saved map, so a DualShock 4 works on plug-in (and the Xbox
360 profile, untested). Restore defaults on a USB pad goes back to its
profile. The list and the last-capture line show button names (Cross,
L1, D-Pad Up, the Clovercon button for front-port bindings) instead of
raw codes. The readmes get screenshots of both views.
pad_mapper rebuilds its translators when a grabbed pad goes away, and the controller row trims the leading separator some pads put in their name.
Axis capture measures from the center, so D-pads reported as axes are detected, and PlayStation Classic buttons and D-pad are shown by name.
The DualShock 4 and PlayStation Classic profiles now use Triangle = X and Square = Y as well.
@DefKorns DefKorns self-assigned this Oct 7, 2026
@DefKorns DefKorns changed the title Om version Native remapper, USB pad profiles and the pad_mapper service Oct 20, 2026
@DefKorns
DefKorns merged commit 938b615 into master Oct 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant