Just FYI, the core input remapping feature is now working:
https://github.com/RetroPie/RetroPie-Setup/issues/877
Just update your setup script, and reinstall retroarch from binary and you can change the core remappings under the quick menu in the rgui.