We could just handle this through a config file. /etc/pandora/buttons is a text file containing the names programs use for the buttons. The first line is for button 1, the second is for button 2, etc.
That way, you can do whatever you want to your buttons and compliant games will always get it...