Turbo buttons (autofire)?

How to activate this feature in MAME core? I’ve searched forum, but can’t find answer. Thanks

Looking for an answer on this as well.
Mapped the Autofire key, enabled it in RetroArch – but always get the “Autofire can’t be enabled” message.