Skip to content

Map the 3DS, Wii U and Switch Pro controllers in the base buttonmap - #356

Merged
garbear merged 1 commit into
xbmc:Piersfrom
sunlollyking:crossmap-new-nintendo-controllers
Nov 11, 2026
Merged

garbear merged 1 commit into
xbmc:Piersfrom
sunlollyking:crossmap-new-nintendo-controllers

Conversation

@sunlollyking

Copy link
Copy Markdown

On kodi-game/controller-topology-project#488, garbear pointed out that a controller maps itself out of the box only when a buttonmap maps it next to the default controller, because the add-on learns the correspondence from devices that have both. This adds the four profiles merged there, the 3DS, Wii U GamePad, Wii U Pro and Switch Pro controllers, to the base buttonmap (the Xbox One pad).

The mappings come from the cores that use these controllers: Citra and Azahar for the 3DS, Cemu for both Wii U pads, and suyu for the Switch Pro. Each feature takes the button of the default feature that the core gives the same libretro input. That makes the layout positional, as for the SNES controller, with A on the right. Home goes to the guide button, as the Wiimote's does. Capture, touch and rumble have no button to map.

Checked by replaying the transformer's matching against the new base buttonmap: a DualSense (mapped as the DualAnalog) and an Xbox 360 pad get every feature of all four controllers, and pads without sticks or a guide button get everything they have.

AI use

Claude Code with Claude Opus 5.5 at max effort.

A controller maps itself out of the box only when a buttonmap maps it next
to the default controller. The four come from their game add-ons'
libretro mappings: each feature takes the button of the default feature
the core gives the same libretro input, so the layout is positional, as
for the SNES controller. Home goes to the guide button, as the Wiimote's
does.
@garbear

garbear commented Nov 11, 2026

Copy link
Copy Markdown

Do you want to do an audit of all game add-ons and see which controllers are missing buttonmaps for out-of-the-box mapping?

@sunlollyking

Copy link
Copy Markdown
Author

Sure yep I can do there's some ive definitely noticed while building out the library and testing everything so will have look around and raise some gaps

@garbear
garbear merged commit 0285cc8 into xbmc:Piers Nov 11, 2026
9 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.

2 participants