I have modified gimxcontroller/firmware code to authenticate with a 3rd party Afterglow controller (used a tutorial from this forum).
When I start Gimx with Dualshock4.xml file, DS4 is working, but all the mappings are incorrect

Edit: Fixed it by creating a new config file with the Gimx configurator.