Edit .map Files?

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
RexMendicorvm
Posts: 19
Joined: Mon Oct 10, 2022 11:54 pm
Has thanked: 1 time
Been thanked: 1 time

Edit .map Files?

Unread post by RexMendicorvm »

Is there any way to edit .map files or are they only configurable via the menu?

AngelicLiver
Top Contributor
Posts: 433
Joined: Fri May 29, 2020 8:50 am
Has thanked: 86 times
Been thanked: 120 times

Re: Edit .map Files?

Unread post by AngelicLiver »

You should be mapping input devices in the MiSTer Main OSD initially and then in the individual cores.

There is lots of information about mapping input devices here, I think update_all also can be configured to download the pre-configured maps for most input devices.

User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: Edit .map Files?

Unread post by Newsdee »

What are you trying to do?

This may help:
https://github.com/MiSTer-devel/Gamecontrollerdb_MiSTer

There is a central configuration for each VID:PID (which this db helps handle by default) and then an option to map per core.

Cores can specify default mappings based on central config.

The .map file format is very simple (its just a binary dump), I forgot if the alternate mappings are done as two blocks (AAABBB) or interleaved (ABABAB) but it was one byte oer button. and the order of the OSD prompt (directions, ABXYLR, Select, Start, etc).

Personally I just remap in OSD, it only takes a minute.

Post Reply