Light gun issue when set on joystick+mouse [Mame]

Hi every one. On Mame, Time Crisis, I set Gun X on LeftJoyX and Mouse X and same for Y. The gun works well with the Joystick but doesn’t the mouse, as if the joystick not only has priority over it, but even prevents it from working.

If I set Mouse first, it has priority this time and prevents Joystick from working. I haven’t found so far any way to make both work.

Is it a RetroArch issue? A Mame core issue? A windows and devices issue (logical issue)?

I remember I had this issue too with Supermodel, Sega Model 3 standalone emulator.

Cheers for your help