Geeks With Blogs
David Redding Blog? What blog? Theres no blog to see here. Please move along

    I've seen a few mentions of this in the Creators Club Forums And I, this is a frickin' cool piece of hardware, What can I write against it?  Well it turns out that the Guitar controller is a lot like a Wii controller.  In that it monitors the position of the guitar, as well as it's acceleration in any given direction.   What's great is, it is simply accessible through the standard GamePad class in XNA.  Here is a list of the different button states, as well as values for each and a short description (The common use ones are bolded):

Input Mapping Guitar Control Functionality
Buttons.A Green Fret Button
Buttons.B Red Fret Button
Buttons.X Blue Fret Button
Buttons.Y Yellow Fret Button
DPad.Up Strum Up, DPad Up Strum a note, and menu navigation
DPad.Down Strum Down, DPad Down Strum a note and menu navigation
DPad.Left DPad Left Menu Navigation
DPad.Right DPad Right Menu Navigation
Buttons.RightShoulder Not Reporting -
Buttons.LeftShoulder Orange Fret Button
Triggers.Right Acceleration? no idea, but the characters in GH3 seem to respond when you give a quick yank on the guitar.
Triggers.Left Roll of guitar no game use, but interesting
ThumbSticks.Left.X Not Reporting -(Reserved?)
ThumbSticks.Left.Y Not Reporting -(Reserved?)
ThumbSticks.RIght.X Whammy Bar -1 to 1 with 1=fully depressed
ThumbSticks.Right.Y Starpower(horizontal) -1 the head is pointing to the ground 1 the head is pointing straight up 0 = ~horizontal


    I've created a handy little app that simply reports the status of all the buttons on a controller, if you want it, lemme know and I'll send you a copy.  With all those unique readings that you can get (Like the acceleration one) It's going to be interesting to see what kind of unique inputs games can be created. The first idea I've had was to create a 3d version of the guitar in xna and show it's position in real time.  Beyond that, I bet it would be interesting to see a paddle ball game using the guitar... watch out for the vases and lamps :)

Posted on Sunday, November 4, 2007 6:20 PM | Back to top

Comments on this post: Rock the XNA: Using the Guitar Hero II Controller

# re: Rock the XNA: Using the Guitar Hero II Controller
Requesting Gravatar...
Hey i'm also interested in your program - can you send it to me?

Left by Mark P Neyer on Jul 15, 2009 8:56 AM

# re: Rock the XNA: Using the Guitar Hero II Controller
Requesting Gravatar...
Hey Mark;

It's been a long time since i've made this post, and in that time i've lost 2 laptops. Unfortunately, i've lost the code along with those same laptops.
Left by Dave Redding on Jul 15, 2009 9:21 AM

# re: Rock the XNA: Using the Guitar Hero II Controller
Requesting Gravatar...
I'd love to use the code to create a Behavior in Expression Blend.
Left by Michael S. Scherotter on Sep 17, 2009 10:47 AM

Your comment:
 (will show your gravatar)

Copyright © Dave Redding | Powered by: