So I figured it , thanks to helpful folks a /r/MAME on reddit.
Here is the xml file I ended up using:
<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default">
<input>
<mapdevice device="0300000009d200001205000011010000" controller="JOYCODE\_2" />
<mapdevice device="0300000009d200001105000011010000" controller="JOYCODE\_1" />
</input>
</system>
</mameconfig>