Too bad that is highly in-accurate as it gets its information from mame

Example, look at Big Event Golf. Mame will tell you 2, but it really just has one. This is because the dev who wrote the driver made a macro to define the buttons. All the games in that driver use the same macro. which sorta makes sense because drivers depict which games used the same hardware for the most part, just a rom swap to change games. But then if you have a 4 button game in the driver all the games in the driver list 4 buttons even if it only used 1. Well, that's the most common reason, there are others...