Search Feedback

116
votes
Under review

Fix multiple joystick support (Windows)

Input

-

-

After tearing my hair out for 4 days, I've finally come to some conclusions. Multiple joysticks don't work in Unity, at least they don't work well enough to be used (as of 3.4). The Unity input manager by default assigns commands to joystick "identifiers" (ie. ID1, ID2, etc.) which apparently can change every time you start up the computer. Input.GetJoystick Names() only seems to work with joystick axes, not joystick buttons. So there is currently no way to assign joystick buttons for multiple joysticks. I've submitted bug reports and recommend anyone else who runs into this do the same.

Comments (18)

  1. C35b9264646fd1b72f6ccfca2622c409?d=mm

    AlanMattano

    Dec 17, 2015 19:35

    Is there a solution for this problem?

  2. 3010bdadecd2cf5c699c6ec512e0448c?d=mm

    jtsmith1287

    Nov 23, 2014 09:56

    Unity. What's going on? This should be a cakewalk compared to the features you're releasing. Controls ... please. Fix them.

  3. Bba5ecd618fe7941c71eddead076c6a2?d=mm

    comradehac

    Jun 18, 2014 18:25

    This is *STILL* a problem in 4.5! Please tell us a fix is coming soon. How hard could this possibly be to fix compared to some of the other actually complicated advanced features the engine is getting these days??

  4. A292d76f70c067b5da7590f06724b326?d=mm

    ruddonomy

    Jun 18, 2014 18:24

    This is for all PC-like platforms, not just Windows. We need some sort of identifying information for the controllers, so that we know which one disconnected. Right now, if controller #2 of 4 disconnects we'll just have 3 players now, but have no idea which 3, and no way to work around it, just hope controllers don't disconnect. Plus, even if it reconnects, it will be the new last controller, controller #4. If this doesn't get fixed soon like in Unity 5, I'm not sure I can use Unity for this game. :(

  5. 5a198fb8131bc1c2bdad233026baa7ba?d=mm

    HypothicEntropy

    Mar 21, 2014 02:15

    This is a problem for me, please fix. I have two USB NES controllers that have the same name and switches between Joystick 1, 2, and 3.... I need the first Joystick plugged into the computer to be Joystick 1 and 2nd Joystick to be Joystick 2.... currently, there is no way to know which Joystick will be assigned to which slot in Unity and there is no way to identify which is which (as far as I know).

  6. 73abaa2b232b6e3d7b1884619c9cd078?d=mm

    FlaxSycle

    Oct 26, 2013 14:23

    This would be massively helpful to me. I am working on a game that features four player local co-op with joypads, and the amount of workaround code I've had to write is sort of crazy.

    Unity will report the devices that are plugged in, but I can't be certain of their order and plugging and unplugging joypads shuffles everything around.

    Have recently verified that this is still an issue in Unity 4.2

  7. 678e5d226379d05026e3a1647ac52dff?d=mm

    Jibran I. Syed

    Sep 01, 2013 03:32

    I would be beyond relief if this was fixed. It's virtually impossible to make a local multiplayer game in Unity because of the bad support for multiple joysticks.

  8. D562f195990106495899091a73489e90?d=mm

    guavaman

    Sep 28, 2012 09:01

    It makes me angry Unity keeps adding so many stores to the building and ignoring the broken elevator in the lobby.

  9. D562f195990106495899091a73489e90?d=mm

    guavaman

    Sep 20, 2012 10:37

    It's so sad all the broken fundamentals get so completely overshadowed by all the new features.

  10. Cb55c22c3ae9c63382c67d60eb40e3af?d=mm

    Anonymous

    May 10, 2012 06:33

    Last post by Benjamin "Reticuli" Goulart

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(9031)

2D

(221)

Ads

(40)

AI & Navigation

(67)

Analytics

(92)

Animation

(304)

Asset Store

(222)

Assets

(489)

Audio

(157)

Cloud Build

(94)

Collaborate

(31)

Docs & Tutorials

(197)

Editor

(2084)

Everyplay

(13)

Game Performance Reporting

(12)

General

(810)

Graphics

(761)

GUI

(363)

Input

(145)

Licensing

(73)

Networking

(158)

Physics

(341)

Platforms

(402)

Profiling & Optimization

(69)

Runtime

(161)

Scripting

(1014)

Terrain

(152)

WebGL

(131)