gamepad controller not working in unity

hello, sir
I am checking in unity gamepad is working fine but once I make a build and check in the device gamepad not working and not detecting the controller. please help me to fix it

thank you

Can you give us some more details?
Can you show us your Input action map?

here is input action map and script

8784247–1192984–TestInput2.zip (978 Bytes)

Did you try to connect a gamepad to your PC and check if it gets detected in editor? You can connect a PS4 controller/Xbox Controller etc and check in if they get detected and have some tests on them.

yes i check with editor gamepad is not working with editor but once detect controller and using this controller then working fine but this detect controller is not working in device. if you have any demo then please share me
thank you

Are you building a 32bit Windows player by chance? IIRC HID support isn’t working in the 32bit version (only 64bit). So no HID gamepads. There is a warning the log about that IIRC.

no i am checking in android device with 64bit but not working on it. if you have any demo or documentation then please share me so i can check it and resolve my issue
thank you

i am waiting for your replay