Hey folks, not sure if this kind of question is welcome here, but here goes:
I'm writing some tooling intended to integrate with FBNeo (among other things) and was wondering if anyone here could help me out with the translation convention of the input bindings so that they could be generated from an external tool
Specifically, I'm interested in how SDL2 bindings translate to the hex code that's mapped to per-game config files, e.g.
input "P1 Coin" switch 0x4087
I've cloned the repo and am digging through it, but I figured it was worth asking here in case someone knew off-hand and could save me some effort
Specifically, I'd like to understand how SDL2 inputs from joysticks are translated into these hex values. I assume that it's something like a signature derived from the fields one could also read as an SDL_Event in c, e.g. there's some translation of an event with the properties: {which: 0, axis: 2, value: -1} and a hex code like the one above. (Or, similar for states, if it's checking device states rather than using the event polling subsystem)
The code for handling inputs and saving config files seems pretty spread out over the codebase, so I think it would be adequate for my purposes to point to which files and functions relate to this translation
Thanks for your time