x


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?

more ▼

asked Mar 23 '10 at 06:23 AM

qJake gravatar image

qJake
11.6k 43 78 161

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Mar 23 '10 at 09:45 PM

karl_ gravatar image

karl_
2.4k 41 53 69

Ah, this is a very useful forum post (though it could use a bit of organization). Thanks for this.

Mar 24 '10 at 02:19 AM qJake
(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Mar 23 '10 at 06:27 AM

Eric5h5 gravatar image

Eric5h5
80.2k 41 132 519

Can you give some examples of what I would type in the Input Manager that would correspond to various buttons (or where I could find this information?)

Mar 23 '10 at 06:45 AM qJake

Click on the help icon in the input manager (joystick = gamepad).

Mar 23 '10 at 07:01 AM Eric5h5
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1672
x953
x520
x47
x1

asked: Mar 23 '10 at 06:23 AM

Seen: 8145 times

Last Updated: Mar 23 '10 at 06:23 AM