Playing lightgun games with a Wiimote is basically plug-and-play now.
A few months ago, I bought myself a pair of Wiimotes, gun attachments, and a Dolphin Bar with the intention of using them for lightgun games. I posted about it here and people told me not to bother because it wasn't plug-and-play, the controllers could be finnicky, and compatibility was very limited. I decided to ignore them and proceed anyway. My experience wasn't that bad. Some systems worked well while others didn't, but there were enough playable games for me to have fun and make the endeavor worth it.They were mostly wrong.
After a while I ended up using my Bato SD card on a retrohandheld and by the time I bought a new one there were a few updates. Playing lightgun games the way I mentioned above is way better now. Literally every system I tried playing so far worked just fine, even Saturn, which had issues recognizing off screen shots for reloading. The guns are indeed still finicky and sometimes the tracking goes haywire or becomes unresponsive, but not often enough to completely ruin the experience considering I how expensive getting a proper lightgun that works on modern TVs tend to be. And it is indeed plug-and-play now. The first few times I had to do a little tinkering but this last time it worked right out of the gate. I love it.
If you tried this in the past and were put off by the various issues, then I recommend you pull those Wiimotes out of the closet and give it another try. It's great.
For reference, I'm using the Steam Deck version of Batocera withe the Deck docked to a TV, but I imagine it should work on any device.