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; } }
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; } }