Xbox360 and Guitar Controller Feedback

Anyone developing for XBLIG knows (or should know) that guitar controllers feedback data on certain analog GamePad inputs. This is why the cautions against using thumbstick movement to determine control. But what data exactly does it feed? I wrote a quick test program to find out.

The whammy bar when not pressed in at all feeds a steady -1.0f on the right thumbstick’s X channel. Pressing it in will steadily change it until (when pressed in all the way) it feeds 1.0f. (The thumbstick channels are analog input placed into a Vector2 with values between -1.0f and 1.0f).

The “effect selector” knob (the switch below the strum bar with 5 positions) sends feedback between 0.0f and 0.8844444f on the left trigger channel. (Trigger channels are analog input placed into a float with values between 0.0f and 1.0f).

Lastly, the “deploy” accelerometer(?) will feed a very quick pulse of feedback greater than 0.0f (it goes up to 1.0f then back to 0.0f in less than a second (approximately)) on the right thumbstick’s Y channel when the guitar controller is moved rapidly. (As best I can figure it is an accelerometer looking for very rapid movement in order to feed a signal). Except for the short pulse of feedback, it will feed 0.0f along the Y channel.

This was just a quick post for future reference. I did not test a drum kit, but I’m not aware of it sending any particular non-zero feedback without something being pressed. Nor have I tested any controllers beyond the classic Rock Band plugged controller (I have a wireless that I expect would feed the same data; I do not have a Guitar Hero controller or any of the fancy new Rock Band 3 controllers (yet)).

Update:

Please see the first comment (from Yenian) for some helpful additional information!

This article is part of the GWB Archives. Original Author: Michael B. McLaughlin

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.