Main > Software Forum
How does Mame map input?
headkaze:
Can someone please clarify how Mame maps input? This is a guess but does it work like this..
default input -> ctrlr -> cfg\default.cfg -> cfg\[ROM].cfg
Eg.
1. Default Input: P1_BUTTON1 is mapped to LCTRL
2. If I have a ctrlr file it can have a default map of LCTRL to the A key. It can also specify per game mappings. So does this override what is in the cfg folder?
3. In cfg\default.cfg what happens if P1_BUTTON1 is mapped to the B key? Does it override what is under default in the ctrlr file?
4. If I play 1942 and I have custom key mappings for it in both ctrlr file and cfg\1942.cfg which key mappings are used?
So does each one overrides the last mapping or do some get ignored down the chain? It's pretty damn confusing, any insight into how the logic works behind this?
arzoo:
--- Quote from: headkaze on June 08, 2007, 08:23:57 pm ---Can someone please clarify how Mame maps input? This is a guess but does it work like this..
default input -> ctrlr -> cfg\default.cfg -> cfg\[ROM].cfg
--- End quote ---
I'm pretty sure you've got it right. Each one overrides the previous.
headkaze:
Thanks for the reply arzoo but I really need a detailed explaination on how it works. I'm working on a really cool project and I want to get the key mappings right. I will of course release a beta version here for testing as soon as it's in a working state but I need to figure this out first.
arzoo:
--- Quote from: headkaze on June 08, 2007, 10:59:00 pm ---Thanks for the reply arzoo but I really need a detailed explaination on how it works. I'm working on a really cool project and I want to get the key mappings right. I will of course release a beta version here for testing as soon as it's in a working state but I need to figure this out first.
--- End quote ---
I know how I do it (LEDBlinky), but it sounds like you're looking for an answer from the mame devs, yes?
headkaze:
Well I do basic cfg mapping my PluginLCD for GX but I need to be more precise now for the application I'm writing. I don't take into account any ctrlr files for example in PluginLCD. I was actually hoping Howard could bust in on this thread, but he tends to be a big vague in his explainations. I'm hoping he can be a bit more detailed on how I should process the input files.
I guess I could ask Mame developers but I think I come from an external processing perspective. Asking Mame developers might just confuse me more. I'll see what BYOAC members can come up with then maybe I'll go ask them.
Always appreciate your input arzoo, cheers.
Navigation
[0] Message Index
[#] Next page
Go to full version