@njt1982 Look here and also some of my post.

guide-advanced-controller-mappings

This is what you probably are looking for.
Sadly i have not been able to get a system wide configuration working but im now at emulator specific configuration.