Skip to content

Map nine more game add-on controllers in the base buttonmap - #357

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

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

Conversation

@sunlollyking

@sunlollyking sunlollyking commented Nov 11, 2026 •

Copy link
Copy Markdown

Following up the audit garbear suggested on #356: which controllers do game add-ons use that the base buttonmap doesn't map next to the default controller, so they don't map themselves out of the box?

The buttonmaps of the 135 game add-ons in kodi-game that have one use 72 controllers. 53 of them are joypad or analog controllers, and the base buttonmap maps 40 of those. Of the other 13, four are multitap adapters with no buttons of their own (SNES Multitap, NES Four Score, Sega Team Player and EA 4 Way Play). This adds the other nine:

Controller Add-ons Features mapped
Competition Pro Joystick uae, uae2021 18 of 18
Atari 5200 Controller atari800, a5200 16 of 21
Atari 800 Joystick atari800 15 of 15
Channel F Controller freechaf 9 of 9
ColecoVision Controller gearcoleco, bluemsx 16 of 18
Intellivision Controller freeintv 11 of 20
PC Engine Controller beetle-pce, beetle-pce-fast, beetle-supergrafx 13 of 13
Watara Supervision potator 8 of 8
Wii Classic Controller dolphin 17 of 17

As in #356, each feature takes the button of the default feature that its core gives the same libretro input, and home goes to the guide button. Three things were new:

  • 88 of the add-ons have no default controller in their buttonmap. For those, the default mapping that 30 add-ons share is used.
  • Where two cores disagree, one decides. For the ColecoVision that's Gearcoleco, since blueMSX's map leaves out the fire buttons. For the Atari 5200 it's Atari800, which puts the main fire button on the bottom face button.
  • A button goes to one feature only, so a feature whose button another one already has stays unmapped.

What doesn't map is keypad keys beyond the pad's buttons: the Atari 5200's 4, 5, 6, 8 and 9, the Intellivision's 1-4 and 6-9, and the ColecoVision's 9 and 0, which Gearcoleco puts on the left stick. The Intellivision's right top button has the same input as the left one in FreeIntv, so the left one covers it.

The other 19 controllers are keyboards, mice and light guns, which don't map from a gamepad.

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 mapped feature of all nine controllers.

AI use

Claude Code with Claude Opus 5.5 at max effort.

Each controller game add-ons use as a joypad gets a block, so it maps
itself out of the box: the Competition Pro Joystick, the Atari 5200
Controller and 800 Joystick, the Channel F, ColecoVision, Intellivision
and PC Engine controllers, the Watara Supervision and the Wii Classic
Controller. As before, a feature takes the button of the default
feature its core gives the same libretro input, one feature per button,
and home goes to the guide button.

@garbear garbear left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

@garbear
garbear merged commit 5bbcd95 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