// These are the guards in TouchscreenGestureInputController.cs
#if ((ENABLE_VR || UNITY_GAMECORE) && AR_FOUNDATION_PRESENT) || PACKAGE_DOCS_GENERATION
#define TOUCHSCREEN_GESTURE_INPUT_CONTROLLER_AVAILABLE
#endif
#if TOUCHSCREEN_GESTURE_INPUT_CONTROLLER_AVAILABLE
using UnityEditor;
using UnityEngine.InputSystem.Layouts;
using UnityEngine.Scripting;
namespace UnityEngine.XR.Interaction.Toolkit.AR.Inputs
{
///
/// This class automatically registers the control layout used by the .
///
///
#if UNITY_EDITOR
[InitializeOnLoad]
#endif
[Preserve]
public static class TouchscreenGestureInputLayoutLoader
{
///
/// See .
///
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad), Preserve]
public static void Initialize()
{
// Will execute the static constructor as a side effect.
}
[Preserve]
static TouchscreenGestureInputLayoutLoader()
{
InputSystem.InputSystem.RegisterLayout(
matches: new InputDeviceMatcher()
.WithProduct(nameof(TouchscreenGestureInputController)));
}
}
}
#endif