First XNA Application - 360 Controller Test

I finished my first XNA application tonight at 1 minute before midnight on the launch day. This is an application that I wrote before using MDX 2.0 and Winforms (See the old article for the features) .

I was able to convert the entire app in about 5 hours without using the documentation. This application is a simple test harness that shows you how to use the XInput API to control the XBOX 360 controller. This new app has all of the features of the old Winforms version, but the implementation is totally different. I will write more over the next few days detailing some key learning's. But I wanted to get the code out to everyone to get you going.

The source code is posted here:

XNA360ControllerTest.zip

Comments

  • Anonymous
    September 01, 2006
    Don't you hate it when you have a little demo that you're thinking of releasing and someone comes around...

  • Anonymous
    September 02, 2006
    Congrats on the demo ...

    Look forward to seeing your next one

  • Anonymous
    September 03, 2006
    Just hooked myself up with an x360 after learning of the beta release of the XNA express. Never done gaming dev b4. The spacewar game is looking for A B buttons which aren't on my keyboard. Will buying a x360 controller for Windows do it? I saw it for sale on Microsoft.com.

  • Anonymous
    September 03, 2006
    Hi Li-fan,

    Yes you should get a controller. It is important to learn how to use the XInput api because when they release the next update of XNA you will be able to run your games on the XBOX 360.
    But until you get a controller, XNASpot has an excellent article on how to update the Space Wars game to use the keyboard.

    http://www.xnaspot.com/Tutorial_GettingStarted.aspx

  • Anonymous
    September 03, 2006
    good job, but when will someone provide a walkthrough for us noobs instead of just giving us source code?

    ;)

  • Anonymous
    September 03, 2006
    When you edit the code which i assume u did, the b button becomes <space>. try it  :D

  • Anonymous
    September 03, 2006
    Hi Egg,

    Thanks for reading my blog. I intend to write a tutorial based on this blog post but I only had time to get the code written and wanted to get it out to people without waiting for the article.

    With that said I totally agree with you as a noob in the game space myself.

    in regards to the keybaord mod, you should be able to change the mappings easily to any keys you want.

  • Anonymous
    September 06, 2006
    Paul Stubbs coded this little test application for the XBOX360 controller.&amp;nbsp; It was actually completed...

  • Anonymous
    September 13, 2006
    Have you downloaded the new XNA Studio Express yet? This software allows one to develop game programs...

  • Anonymous
    September 13, 2006
    The comment has been removed

  • Anonymous
    December 06, 2006
    Tired of giving socks every year to your favorite engineer or technology elitist? Coding4Fun has come

  • Anonymous
    May 15, 2007
    Hi Paul, I have ported this application to use the latest XNA release 1 refresh. You can download it at http://202.173.151.27/xciting it is in the projects section of the website. Hope this helps.

  • Anonymous
    December 05, 2007
    If you're not sure what you need for this holiday season, look no further. After a year of coding and

  • Anonymous
    December 05, 2007
    PingBack from http://msdnrss.thecoderblogs.com/2007/12/05/holiday-gift-guide-2007-edition/