#if ENABLE_VR || UNITY_GAMECORE || PACKAGE_DOCS_GENERATION
using UnityEngine.InputSystem.Layouts;
using UnityEngine.InputSystem.LowLevel;
using UnityEngine.InputSystem.XR;
using UnityEngine.Scripting;
namespace UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
{
///
/// An input device representing a simulated XR head mounted display.
///
[InputControlLayout(stateType = typeof(XRSimulatedHMDState), isGenericTypeOfDevice = false, displayName = "XR Simulated HMD", updateBeforeRender = true)]
[Preserve]
public class XRSimulatedHMD : XRHMD
{
///
protected override unsafe long ExecuteCommand(InputDeviceCommand* commandPtr)
{
return XRSimulatorUtility.TryExecuteCommand(commandPtr, out var result)
? result
: base.ExecuteCommand(commandPtr);
}
}
}
#endif