internal BeatSaberUtilities(MainSettingsModelSO mainSettingsModel, PlayerDataModel playerDataModel, Settings settings, IVRPlatformHelper vrPlatformHelper) { _mainSettingsModel = mainSettingsModel; _playerDataModel = playerDataModel; _settings = settings; _vrPlatformHelper = vrPlatformHelper; }
internal static void AdjustControllerTransform( IVRPlatformHelper platformHelper, XRNode node, Transform transform ) { if (!Plugin.IsEnabled) { return; } if (!IsInGame) { return; } switch (node) { case XRNode.LeftHand: transform.Translate(Preferences.LeftTranslation); transform.Rotate(Preferences.LeftRotation); break; case XRNode.RightHand: transform.Translate(Preferences.RightTranslation); transform.Rotate(Preferences.RightRotation); break; } }
public void Construct(IVRPlatformHelper vrPlatformHelper, BeatmapObjectCallbackController callbackController, AudioTimeSyncController audioTimeSyncController, VRControllersInputManager vrControllersInputManager) { _vrPlatformHelper = vrPlatformHelper; _callbackController = callbackController; _audioTimeSyncController = audioTimeSyncController; _vrControllersInputManager = vrControllersInputManager; }
internal void Construct(IVRPlatformHelper helper, Config.FPFCToggleOptions options) { _helper = helper; _options = options; _fpfcCommandArgument = Environment.GetCommandLineArgs().Any(x => x.ToLower() == "fpfc"); _start = options.Enabled && _fpfcCommandArgument; Enabled = _start; }
private void AppCoreSceneContext_PostInstall() { DiContainer container = _appCoreSceneContext.Container; IVRPlatformHelper vrPlatformHelper = container.Resolve <IVRPlatformHelper>(); if (vrPlatformHelper is OpenVRHelper openVRHelper) { _openVRHelper = openVRHelper; } else { _logger.Error($"{nameof(IVRPlatformHelper)} isn't an instance of {nameof(OpenVRHelper)}; are you using SteamVR?"); } }
public ControllerTweaksRemapInstaller(IVRPlatformHelper vrPlatformHelper) { this.vrPlatformHelper = vrPlatformHelper; }
public RemapViewController(ButtonSelectionModalController buttonSelectionModalController, IVRPlatformHelper vrPlatformHelper) { this.buttonSelectionModalController = buttonSelectionModalController; this.vrPlatformHelper = vrPlatformHelper; }