XNA - how to tell if a thumb stick was “twitched” in a certain direction
问题 Is there anything in the API (3 or 4) to tell me if the stick moved in one direction, as in a menu where it's equivalent to hitting a direction on the DPad? There appear to be some Thumbstick* members in the Buttons enum, but I can't find decent documentation on them. Just want to make sure I'm not missing something obvious before I go and roll my own. Thanks! 回答1: There is no XNA method to tell you if a thumbstick was "twitched" this frame. The easiest method is to store the old thumbstick