Xinput gamepad not working on play or packaged

I had a similar problem, but when I used x360ce and copied it into the binary folder of the package project and loaded the game settings to the file it got connected…
my device is asuz gamepad … x360ce you can google … just thought it might be your problem …hence shared …
thankyou