diff --git a/DFUVR/SPC.cs b/DFUVR/SPC.cs index 4278fd0..a6cf3e9 100644 --- a/DFUVR/SPC.cs +++ b/DFUVR/SPC.cs @@ -2,6 +2,7 @@ using UnityEngine; using UnityEngine.SpatialTracking; using UnityEngine.UI; +using UnityEngine.XR; using uWindowCapture; namespace DFUVR @@ -30,6 +31,7 @@ public class SPC : MonoBehaviour private const uint MOUSEEVENTF_LEFTDOWN = 0x02; private const uint MOUSEEVENTF_LEFTUP = 0x04; + private const uint MOUSEEVENTF_WHEEL = 0x0800; [DllImport("user32.dll")] private static extern bool SetCursorPos(int X, int Y); @@ -156,6 +158,15 @@ void Update() if (Input.GetKeyDown(Var.acceptButton) || Var.rTriggerDone || Var.lTriggerDone) hit.collider.gameObject.GetComponent