#if UNITY_INPUT_SYSTEM using UnityEngine.Scripting; using UnityEngine.InputSystem.Controls; using UnityEngine.InputSystem.Layouts; namespace UnityEngine.XR.ARSubsystems { /// /// A Handheld AR device layout that represents a mobile AR device, for use with the /// [Input System package](https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/index.html). /// [Preserve] [InputControlLayout(displayName = "AR Handheld Device", isGenericTypeOfDevice = true)] public class HandheldARInputDevice : UnityEngine.InputSystem.InputDevice { /// /// The position in 3D space of the device. /// [Preserve] [InputControl] public Vector3Control devicePosition { get; private set; } /// /// The rotation in 3D space of the device. /// [Preserve] [InputControl] public QuaternionControl deviceRotation { get; private set; } /// /// Finishes setting up the device by storing the child controls. /// protected override void FinishSetup() { base.FinishSetup(); devicePosition = GetChildControl("devicePosition"); deviceRotation = GetChildControl("deviceRotation"); } } } #endif