Repository navigation
Map nine more game add-on controllers in the base buttonmap - #357
Merged
Merged
Conversation
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.
sunlollyking
force-pushed
the
crossmap-retro-controllers
branch
from
November 11, 2026 18:43
0741588 to
9b5b08a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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:
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.