예제 #1
0
        private void HandleGamePadSuperShieldOff(GamePadButtonUpEvent gpbue)
        {
            if (gpbue._playerIndex != PlayerIndex)
            {
                return;
            }

            if ((int)gpbue._releasedButton == CVars.Get <int>("controller_" + ((int)gpbue._playerIndex) + "_super_shield"))
            {
                _snapshot.SuperShield = false;
            }
        }
예제 #2
0
        private void HandleGamePadRotationOff(GamePadButtonUpEvent gpbue)
        {
            if (gpbue._playerIndex != PlayerIndex)
            {
                return;
            }

            if ((int)gpbue._releasedButton == CVars.Get <int>("controller_" + ((int)gpbue._playerIndex) + "_rotate_counter_clockwise"))
            {
                isRotatingCCW = false;
            }
            if ((int)gpbue._releasedButton == CVars.Get <int>("controller_" + ((int)gpbue._playerIndex) + "_rotate_clockwise"))
            {
                isRotatingCW = false;
            }
        }