Creating control scheme for DirectInput HIDs

Hello,
I am trying to support more than 4 gamepads, one solution is to use EasySMX wireless gamepads which can be used both in XInput mode (but with the limitation of having just 4 recognized by Unity) or DirectInput.

When using DirectInput mode they show as ESM-xxxxx devices, which are categorized as Joysticks.

9261318--1295796--upload_2023-8-30_17-53-40.png

If i create a map, i cannot find a way to support them as generic joystick, it only works if I create specific actions for each specific controller.

9261318--1295799--upload_2023-8-30_17-55-32.png

Please note that while named differently, model but also firmware revision, they have actually the same data layout, and they show up identical in the input debug view.
I am almost there… and I would like to create a map that works for any “ESM-*” device.

How can I proceed?
Thank you!

auto-answering myself in search for a confirmation.

If I don’t rely on the automatic join and revert to the manual join behaviour, i can just look at device names containing “ESM” and joining the player providing the custom control scheme (that works accross models).

Just FIY, in Unity 2022.3 XInput has been upgraded to Windows.Gaming.Input and supports more than 4 XInput devices, don’t know exactly how many.

9265752--1296780--upload_2023-9-1_10-33-3.png

related forum topic