Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anybody know how to do this? I have been trying to figure this out with no luck.

share|improve this question
Wired or wireless? – Chris Simmons Dec 9 '10 at 5:26
multiple wireless – Egon Dec 13 '10 at 9:51
up vote 5 down vote accepted

This? I think the GamePad stuff works on Windows last time I tried it.

share|improve this answer

It should work pretty easy. I'm using an xbox 360 controller plugged into my windows machine as my main gaming controller, and to make an XNA project use it all I had to do was:

GamePadState gamepadState = GamePad.GetState(PlayerIndex.One);

float movement = gamePadState.ThumbSticks.Left.X * MoveStickScale;

if (Math.Abs(movement) < 0.5f)
                movement = 0.0f;
if (gamePadState.IsButtonDown(Buttons.DPadLeft)){
                //do something
if (gamePadState.IsButtonDown(Buttons.LeftShoulder){
                //do something else

and so on. Have you tried testing that the 360 controller works properly with your machine? Like, with other programs/games? Maybe you've just got a driver problem, but I think windows vista and 7 have the 360 drivers by default. (I'm using XP, had to install them)

Try looking at these code samples:

share|improve this answer
Those links do not work anymore. But I found these:…… – Markus Dec 5 '13 at 11:34

You need the "XBox Controller For Windows". As far as I know the controller itself is the same, however, you get an adapter that can be used with any XBox controller device. Either that, or the device just ships with the driver CD.

I would go with Zaphod42's advice (just plug the thing in if it's a standard USB device); and if that doesn't work order one online.

Not 100% sure because I don't own an XBox.

share|improve this answer

You need one of the Microsoft Xbox 360 Wireless Gaming Receivers for the wireless pads.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.