If the switch maps ZR/ZL to axis (instead of buttons), then EmulationStation (where I assume you try to register them) will ignore them as buttons. Have you tried to map them to LT/RT (the should trigger buttons) ?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.