Xbox360Controller

This page serves as a cross reference between Unity and the XBOX 360 contoller buttons/axis.

Full controller support
If you only build your game for Windows, you may be interested in XInput.NET which allows full XBox 360 controller support. For an InputManager.asset file with four XBox 360 controllers mapped click here or with separate axises for triggers: click here

Configuration
The sensitivity of the axises should be set to 1 for accurate reproduction. The Gravity of an axis should be set to 0. Axises should be configured with a dead zone to prevent them from producing an output of more than 0 when they are not moved. Since the centre return of the thumbsticks will cause the output to wander, they should be given a dead zone of around 0.2. The Triggers are firmer, and only require a deadzone of 0.1.

Buttons can either be fetched using Input.GetButton, or, if using an axis in the InputManager, can be configured with a sensitivity of 1000.

Bindings
The controller bindings for several operating systems using the most commonly acquired drivers are specified below for:


 * Windows tested against Windows 8.1 using default drivers
 * Mac OS X tested against Mavericks and Yosemite using Tattie Bogle 0.12 controller driver
 * Linux tested against Ubuntu 13.04 64-bit using the default driver

Unity will only reference axises via the input manager, while buttons can be accessed via a string joystickbuttonX or through the KeyCode enum, where X is the number of the button provided in the table below. For example KeyCode.JoystickButton9 would refer to the Right Stick Click on Windows, the Start Button on OS X, and the Left Stick Click on Linux on all controllers. For More infomation on how to use the data from the table below, refer to the manual

Linux
Note: wired controllers only support axises for the d-pad, while the wireless controller only supports buttons for the d-pad, refer to the table above for the wireless controller configuration.