Yes, I see there is a diagonal mode, but mame (and mala) will report the controls for that game as being 4-way, not diagonal. So, there must be a way for the plugin to know that for qbert it needs to use diagonal instead of the 4-way that mame/mala told it to use.
In the U360 plugin we have the notion of map files (which are necessary to be applied by the UltraMap tool that the plugin uses -- similar to the 49way tool, but it takes a map file as a parameter and reads the mode to apply from the map file). Since files were necessary for the U360 plugin to work the logic is to look for a game-specific file first, then the clone-of file, and finally the mame reported controller type. The first one found is used. It seems we need the notion of a 'map file' for this plugin as well, but what should the format be? Should it just be a number? Should it just be a string that is well-known and that the plugin can map to a number?
Is that clearer?