Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Sorry for the double post.. I've found what I was looking for in ~/.emulationstation/es_input.cfg
I will finish the implementation in mk_arcade to be able to use the MCP23017 too, after that I will be able to provide the source code