Search Unity

Bug gamepad controller not working in unity

Discussion in 'Input System' started by chiragsavaliya, Feb 1, 2023.

  1. chiragsavaliya

    chiragsavaliya

    Joined:
    Dec 11, 2017
    Posts:
    6
    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
     
  2. MatanYamin

    MatanYamin

    Joined:
    Feb 2, 2022
    Posts:
    110
    Can you give us some more details?
    Can you show us your Input action map?
     
  3. chiragsavaliya

    chiragsavaliya

    Joined:
    Dec 11, 2017
    Posts:
    6
    here is input action map and script
     

    Attached Files:

  4. MatanYamin

    MatanYamin

    Joined:
    Feb 2, 2022
    Posts:
    110
    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.
     
  5. chiragsavaliya

    chiragsavaliya

    Joined:
    Dec 11, 2017
    Posts:
    6
    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
     
  6. rdjadu

    rdjadu

    Joined:
    May 9, 2022
    Posts:
    116
    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.
     
  7. chiragsavaliya

    chiragsavaliya

    Joined:
    Dec 11, 2017
    Posts:
    6
    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
     
  8. chiragsavaliya

    chiragsavaliya

    Joined:
    Dec 11, 2017
    Posts:
    6
    i am waiting for your replay