Search Unity

Question Gamepad not working in build

Discussion in 'Input System' started by MeepMeep_Games, Jul 31, 2020.

  1. MeepMeep_Games

    MeepMeep_Games

    Joined:
    Jul 5, 2018
    Posts:
    10
    Hi all,

    I'm using the new InputSystem with Unity 2020.1.0f1. In the editor it correctly registers any connected controllers (tested with 1 and 2), it also registers the keyboard and mouse.

    However when I make a stand-alone build it doesn't register any controllers anymore. I does still register keyboard and mouse.

    I tried enabling all gamePad types, I printed the number of unsupported and supported devices which gives 2 for supported (mouse and keyboard) and 0 for unsupported...

    Someone had this problem before? or has any idea how to fix it?
     
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    If this is on Windows with a 32bit player, switching the player to x64 should fix the problem. There should be a warning in the console about some controllers not working in 32bit players.
     
  3. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,633
    Hi guys im getting this with a 64 player, my joypads dont work on the ui, but they work fine on the game, what could be the issue? im using unity 2022.2.20