Mednafen PSX second controller not working

I am using the regular beetle PSX core with two xinput controllers. This is the software render, native resolution, pretty much exactly stock. I am using the latest version of RA 1.6.7 in windows 10 64 bit. The input driver is dinput and the joypad driver is xinput. The gl driver is opengl and the audio driver is xaudio.

The first controller works just fine, but the second controller won’t register inputs. Other cores work just fine with the same two controllers. Any ideas on how to fix this?

Well I switched to PSX Hardware and the issue is better. Some games do not working with the default dualshock setting in the controller menu, so I had to switch them to PS1 Joypad where they both worked. Fortunately per game profiles for control settings in the quick menu appear to be working, so this is only a minor issue. Never did figure out what was wrong with beetle PSX proper.