For NES, how to make Y and X the autofire of A and B?

I am using RetroArch (FCEUmm core) on my ipad to play some old games that requires autofire (turbo). How to make X the turbo of A and Y the turbo of B?

I have access to the raw file system of my ipad, if file changing is required. Thanks.