Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Does the XBox 360 Gamepad work with Unity?

Discussion in 'Scripting' started by antonbursch, Mar 31, 2008.

  1. antonbursch

    antonbursch

    Joined:
    Mar 30, 2008
    Posts:
    39
    no longer available
     
  2. MatthewW

    MatthewW

    Joined:
    Nov 30, 2006
    Posts:
    1,356
    Yes, it works. On the Mac side of things, though, you need to run user-made drivers (in order to do anything with the controller, which includes Unity).

    One annoying thing is the buttons map differently between Windows and Mac. The A button may be button 13 on Windows and button 7 on Mac, or whatever. You can get around this by duplicating all of the input managing names and then detecting which platform the game is running on. You would then map all of the GetButton/GetButtonDown/etc calls through your own functions that handle the platform.

    The Mac OS drivers for the 360 stuff: http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver
     
  3. Martin-Schultz

    Martin-Schultz

    Joined:
    Jan 10, 2006
    Posts:
    1,377
    Hey Anton, nice to see you here too. :)
    (from the GG forums)

    Martin
     
  4. antonbursch

    antonbursch

    Joined:
    Mar 30, 2008
    Posts:
    39
    Howdy!!