- Home /
Gamepads/Controllers and the Unity Editor
Quick, easy question (I hope): I have an Xbox360 controller hooked up to my PC, and Windows recognizes it as a "gamepad". Can I create a game for the PC, specifically catered to controller-based input? What I mean is, does Unity allow me to create inputs specifically for gamepads (things like directional X/Y movement with the joysticks, trigger input axes, and controller rumble/vibration)?
If the answer is no... (follow-up question!) When Unity 3 comes out, it will support the Xbox360, so does that mean we'll probably see better controller input support at that time?
Answer by karl_ · Mar 23, 2010 at 09:45 PM
http://forum.unity3d.com/viewtopic.php?t=5563
Great forum thread on 360 controllers. It varies based on what series of controller you have, but you should be able to figure out which configuration works for you.
Ah, this is a very useful forum post (though it could use a bit of organization). Thanks for this.
Answer by Eric5h5 · Mar 23, 2010 at 06:27 AM
Yes, set up appropriate axes and buttons for the gamepad in Unity's input manager. There is no vibration support, but you can use all axes/buttons that are reported by your OS's USB stack.
Can you give some examples of what I would type in the Input $$anonymous$$anager that would correspond to various buttons (or where I could find this information?)
Click on the help icon in the input manager (joystick = gamepad).
Your answer
Follow this Question
Related Questions
2 Xbox Controllers for Split Screen Game 2 Answers
Unity Editor behaving differently than a build when using Network High Level API 0 Answers
How do I use an Input axis instead of Input.mousePosition??? 1 Answer
Gamepad: Trigger Axes 0 Answers
How to have multiple types of controller input using the input manager 0 Answers