Search Unity

Navigating the UI with controllers in local multiplayer

Discussion in 'UGUI & TextMesh Pro' started by lejean, Jan 9, 2019.

  1. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    I'm trying to create f.e. a shop interface where both players should be able to navigate through it to buy their items.

    I can't really find any info on this (which again blows my mind cause how are people making local multiplayer games then..)

    As a cherry on top I'm also using XInputDotNet, because the built in input system is a complete joke, but then with XInputDotNet I don't know how I can use the StandaloneInputManager to catch the XInput events.

    Does anyone have any idea how to do this?
     
  2. clintonb

    clintonb

    Joined:
    Dec 14, 2013
    Posts:
    15
  3. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    Thx for the reply, but the problem is multiplayer. Multiple players navigating a window like a shop to buy stuff.
    The eventsystem only allows for one controller, but I've found a way to have multiple eventsystems so maybe that problem is somewhat solved, but the next problem is gonna be making it work with that XInput

    and ye XInputDotNet is pretty nice. It's a free XInput wrapper to replace unity's directInput which is pretty bad.
     
  4. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
  5. miqvp22

    miqvp22

    Joined:
    Jan 17, 2019
    Posts:
    9
    This is another solution using the new input system.

     
    LaFleurGames likes this.