public void Session_GetControllerVibrationState() { IntPtr sessionPtr = CreateSession(); Assert.AreNotEqual(IntPtr.Zero, sessionPtr); var hapticsPlaybackState = new HapticsPlaybackState(); Result result = OVR.GetControllerVibrationState(sessionPtr, ControllerType.LTouch, ref hapticsPlaybackState); if (result == Result.DeviceUnavailable) { Assert.Fail("Touch controller was available."); } Assert.IsTrue(result >= Result.Success, "Failed to call GetControllerVibrationState"); }
public static extern Result ovr_GetControllerVibrationState(ovrSession session, ControllerType controllerType, ref HapticsPlaybackState outState);