1234567891011121314151617181920212223 |
- using HarmonyLib;
- using Libraries.HM.HMLib.VR;
- using UnityEngine.XR;
- namespace BeatSaberTweakers.HapticFeedbackAdjust.HarmonyPatches
- {
- //// **virtual** void PlayHapticFeedback(XRNode node, HapticPresetSO hapticPreset)
- //[HarmonyPatch(typeof(HapticFeedbackController))]
- //[HarmonyPatch("PlayHapticFeedback")]
- //[HarmonyPatch(new[] { typeof(XRNode), typeof(HapticPresetSO) })]
- //internal static class HapticFeedbackPatch
- //{
- // static bool PreFix(HapticFeedbackController __instance, XRNode node,ref HapticPresetSO hapticPreset)
- // {
- // Plugin.Logger.Debug("PlayHapticFeedback:" + node + ", s:" + hapticPreset._strength + ", d:" + hapticPreset._duration + ", f:" + hapticPreset._frequency);
- // var copy = new HapticPresetSO();
- // copy.CopyFrom(hapticPreset);
- // copy._strength *= 3;
- // hapticPreset = copy;
- // return false;
- // }
- //}
- }
|