Ok with the new recent version of amiberry it is possible to toggle the autofire on one button but it is still not possible to play the game with this because 3 types of buttons are needed:

Firebutton 1
Firebutton 1 toggle autofire
Firebutton 2

Is it possible to configure this to the gamepad buttons to 3 e.g. A, B, X? I can't find anything to setup a key for autofire.

Thank you for your help.

RetroPie is v4.7.1 Released November 4, 2020.
PI3 B+, SDXD-16GB ,
2x Logitech F710 Gamepads
keyboard + mouse are also connected