WuhuIslandTesting/Library/PackageCache/com.unity.xr.oculus@4.0.0/Runtime/OculusUsages.cs
2025-01-07 02:06:59 +01:00

26 lines
1 KiB
C#

#if ENABLE_VR || PACKAGE_DOCS_GENERATION
using UnityEngine.XR;
namespace Unity.XR.Oculus
{
/// <summary>
/// Input Usages, consumed by the UnityEngine.XR.InputDevice class in order to retrieve inputs.
/// These usages are all Oculus specific.
/// </summary>
public static class OculusUsages
{
/// <summary>
/// Represents the capacitive touch thumbrest on Oculus Rift controllers.
/// </summary>
public static InputFeatureUsage<bool> thumbrest = new InputFeatureUsage<bool>("Thumbrest");
/// <summary>
/// Represents the capacitive touch sensor state on the trigger of the Oculus Rift Controller.
/// </summary>
public static InputFeatureUsage<bool> indexTouch = new InputFeatureUsage<bool>("IndexTouch");
/// <summary>
/// Represents the capacitive touch sensor state on the grip of the Oculus Rift Controller.
/// </summary>
public static InputFeatureUsage<bool> thumbTouch = new InputFeatureUsage<bool>("ThumbTouch");
}
}
#endif