Picade X Hat works in emulation station but not in Mame

Hello all:

I have spent many hours trying to get my Picade to work with classic arcade games in RetroPie. I can get the raspberry pi to recognize the Picade X Hat and I assign the keys under emulation station. So my front end works perfectly. But when I get inside the games, they do not recognize the buttons. I know that pressing TAB I can access a menu to configure the inputs for the game or for all the games but my installation shows “dip switches” instead of a way to configure the inputs. I am hoping someone can help me as I have spent hours and hours trying to solve this.

THANK YOU