Problem binding inputs in MAME

Hi, I’m having the exact same problem as this thread

But I dont know how to fix it! Im using a Picade HAT and everything works fine apart from MAME!

Thanks

Hi

Im trying to setup a Picade HAT and all works fine apart from in MAME roms. The problem is exactly the same as in this thread

I have no idea how to fix it though, please help!