// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Input { /// /// Represents the subset of data held by a that represents Unity's legacy input system. /// public struct MixedRealityInteractionMappingLegacyInput { /// /// Optional KeyCode value to get input from Unity's old input system. /// public KeyCode KeyCode { get; } /// /// Optional horizontal or single axis value to get axis data from Unity's old input system. /// public string AxisCodeX { get; } /// /// Optional vertical axis value to get axis data from Unity's old input system. /// public string AxisCodeY { get; } /// /// Should the X axis be inverted? /// public bool InvertXAxis { get; } /// /// Should the Y axis be inverted? /// public bool InvertYAxis { get; } public MixedRealityInteractionMappingLegacyInput(KeyCode keyCode = KeyCode.None, string axisCodeX = "", string axisCodeY = "", bool invertXAxis = false, bool invertYAxis = false) { KeyCode = keyCode; AxisCodeX = axisCodeX; AxisCodeY = axisCodeY; InvertXAxis = invertXAxis; InvertYAxis = invertYAxis; } } }