It depends what is meant by "displays the button/controls".
Do you mean you want to see if the game uses joystick/trackball/lightgun/spinner and which buttons? You can see an example of this in the Arcadeflow 3.3 layout.
Do you mean you want to see what action each button pressed in AttractMode will do? You can see an example of this in the SNK Neo Geo AES layout.
Do you mean you want to see what action each button pressed will have while inside the game AttractMode has displayed? This would be much more complex because it will be different for every game and specific to the control panel being used and how it's wired. You could use CPWizard to create custom images of your control panel showing what each button does in every game. This provides an automated way to get all of you information and images based on your specific control panel. Once you have these CP images you can...
- just show them like any other artwork in your AttractMode layout
- use the customized "fadetogame plugin" to show the images as the game is being launched
http://forum.attractmode.org/index.php?topic=1893.msg13126#msg13126- use the MAME pause feature to see the controls when your in the game and pause MAME
http://headsoft.com.au/index.php?category=cpwizard- use RocketLauncher to view the images in the pause menu
http://forum.attractmode.org/index.php?topic=2401.msg16418#msg16418