The funny thing is you actually do need 50+ buttons to play all the games on MAME properly. Some of the Majong ones need tons.
Last I checked the maximum amount of Player buttons Mame will allow one to configure for Players 1 and 2 are ten buttons each.
It is true (I am 99.99% sure) that MAME can't support 50+ buttons; however the real cabs of those Mahjong games are wacky and have about that many!
Mah Jong games have more than 10 buttons per player by not using mame's pre-defined button settings, and instead making their own. Examples:
"Normal" definition of a button
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER1 )
Definition of non-standard buttons:
PORT_BITX(0x01, IP_ACTIVE_LOW, 0, "P1 Button 1", KEYCODE_LCONTROL, JOYCODE_1_BUTTON1 )
There are 2-player mah jong games in mame (royalmah for instance), with each player having 26 buttons + 1 start (total 54 buttons).
FWIW, theoretically Mame can support a lot of buttons. Internally, the max is 20 ports (MAX_INPUT_PORTS) * 16 bits per port = 320 buttons (if all ports are used, if the inputs aren't "matrix-ed" inside mame, and if all ports are buttons, ie: no dipswitches, no analog inputs). In windows mame the max physical inputs would be: 256 keyboard buttons + 4 mouse buttons + (32 joystick buttons * 4 joysticks per mame) = 388 input buttons. Of course, no games or hardware comes close to either these limits. ;)