Good lord, theres button configs on NFBA/MAME for each individual game as well as every other doujin game and your going with That layout.
seriously, just stick with the GGXX/MBAC/AH2 for MBAC, especially if your trying to emulate the arcade experience
@Noradseven that's not the standard layout, it is
A B C
D _ E
_ is blank, and E is quick action(4/6E = throw, 5E = Heat, 2E = dodge)
in other words, the layout your using is the standard layout
as for the caster thing, just build an exe that runs caster, press 4, and presses enter 3 times. Shouldn't be much of a problem with Auto Hot Key. After that just find a way for linux or whatever OS to start up the AHK file or w/e