cruisin_asu.Helpers.Controller.Xbox360Update C# (CSharp) 메소드

Xbox360Update() 개인적인 메소드

private Xbox360Update ( ) : void
리턴 void
        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;
                    }
                }
            }
        }