How to make the PS4/DS4 controller's touchpad work?

I’m using DS4Windows to make the PS4 controller behave like an Xinput controller as opposed to a Directinput one. Now, as soon as even a small part of the Retroarch window is on screen, the touchpad (used as the mouse) stops working on the entire screen for whatever reason. Is there any way to keep it’s functionality? It’d be useful for Nintendo DS games.

I use “InputMapper” instead of DS4Windows and I believe the touch pad always works. You could give it a try.