You can use the raw input plugin which ships with UE
Then get the HID and VID from windows (only example, it’s an Logitech x52 in my case)

Bind it in the raw input
Bind the raw input in Engine Input
And bring it to your game
You can use the raw input plugin which ships with UE