Search Unity

Navigation Options works with Keyboard but not Xbox controller ?

Discussion in 'Windows' started by psypol, Feb 11, 2019.

  1. psypol

    psypol

    Joined:
    Dec 20, 2013
    Posts:
    25
    Hi.
    i want to make a mouse/keyboard interface also navigable via Xbox controller.
    It seems the "Explicit" option of https://docs.unity3d.com/Manual/script-SelectableNavigation.html is the way to go.
    BUT i dont understand why the doc keeps repeating it works on "arrow keys".
    In the Settings/Controls of my project i tried to associate the D-pad of the xbox controller to do the same thing as arrow up/down/left/right but the navigation does not work.

    Am i missing something or to make my navigation i must use something like Joy2Key that users would install aside of unity ?
    Also stumble upon https://forum.unity.com/threads/rewired-advanced-input-for-unity.270693/ does this participate in solving problem as i have ?

    Thanks in advance for any help.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Which platform is it on? Navigation uses HorizonalAxis and VerticalAxis controls. Is that what dpad is associated with?
     
  3. psypol

    psypol

    Joined:
    Dec 20, 2013
    Posts:
    25
    hi.
    Posting in Windows forum ;-) so yeah i confirm its related with builds for PC/Windows
     
  4. psypol

    psypol

    Joined:
    Dec 20, 2013
    Posts:
    25
    Up. anyone ?
     
  5. Mullan7

    Mullan7

    Joined:
    May 23, 2013
    Posts:
    79
    For xbox controllers I usually have to set "Force Active" in the input module on the event system before it works with UI menus. Add your controller axes in the input module and it should just work