Hi @crush, I have tried to do it with MAME 0.142 but it not allows to assign Joystick/Buttons to save states.
Which version are using you?
I have tested it in modern versions and it appears that now is fully supported, but anyway I still want to make it in 0.142 version