Picade X Hat button 7 & 8

I have connected a few buttons to input BTN7 & BTN8.
How do I use this buttons in RetroPi?
If I want to assign this buttons in RetroPi, but nothing happens when I push the buttons.