// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Input
{
///
/// Data structure for mapping gestures to s that can be raised by the Input System.
///
[Serializable]
public struct MixedRealityGestureMapping
{
///
/// Constructor.
///
public MixedRealityGestureMapping(string description, GestureInputType gestureType, MixedRealityInputAction action)
{
this.description = description;
this.gestureType = gestureType;
this.action = action;
}
[SerializeField]
private string description;
///
/// Simple, human readable description of the gesture.
///
public string Description => description;
[SerializeField]
private GestureInputType gestureType;
///
/// Type of Gesture.
///
public GestureInputType GestureType => gestureType;
[SerializeField]
private MixedRealityInputAction action;
///
/// Action for the associated gesture.
///
public MixedRealityInputAction Action => action;
}
}