private void Xbox360Update()
{
gamePadState = GamePad.GetState(PlayerIndex.One);
foreach (Buttons button in xbox360ControlScheme.Keys) {
if (gamePadState.IsButtonDown(button)) {
Controls control = xbox360ControlScheme[button];
if (controlState.ContainsKey(control)) {
controlState[control] = true;
}
} else if (gamePadState.IsButtonUp(button)) {
Controls control = xbox360ControlScheme[button];
if (controlState.ContainsKey(control)) {
controlState[control] = false;
}
}
}
}