mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Struct SpeechCommands

    Data structure for mapping Voice and Keyboard input to MixedRealityInputActions that can be raised by the Input System.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public struct SpeechCommands

    Constructors

    SpeechCommands(String, KeyCode, MixedRealityInputAction, String)

    Constructor.

    Declaration
    public SpeechCommands(string keyword, KeyCode keyCode, MixedRealityInputAction action, string localizationKey = "")
    Parameters
    Type Name Description
    String keyword

    The Keyword.

    KeyCode keyCode

    The KeyCode.

    MixedRealityInputAction action

    The Action to perform when Keyword or KeyCode is recognized.

    String localizationKey

    An optional key to use to override the keyword with a localized version

    SpeechCommands(String, KeyCode, MixedRealityInputAction, String)

    Constructor.

    Declaration
    public SpeechCommands(string keyword, KeyCode keyCode, MixedRealityInputAction action, string localizationKey = "")
    Parameters
    Type Name Description
    String keyword

    The Keyword.

    KeyCode keyCode

    The KeyCode.

    MixedRealityInputAction action

    The Action to perform when Keyword or KeyCode is recognized.

    String localizationKey

    An optional key to use to override the keyword with a localized version

    Properties

    Action

    The MixedRealityInputAction that is raised by either the Keyword or KeyCode.

    Declaration
    public MixedRealityInputAction Action { get; }
    Property Value
    Type Description
    MixedRealityInputAction

    Action

    The MixedRealityInputAction that is raised by either the Keyword or KeyCode.

    Declaration
    public MixedRealityInputAction Action { get; }
    Property Value
    Type Description
    MixedRealityInputAction

    KeyCode

    The corresponding KeyCode that also raises the same action as the Keyword.

    Declaration
    public KeyCode KeyCode { get; }
    Property Value
    Type Description
    KeyCode

    KeyCode

    The corresponding KeyCode that also raises the same action as the Keyword.

    Declaration
    public KeyCode KeyCode { get; }
    Property Value
    Type Description
    KeyCode

    Keyword

    The Fallback Keyword to listen for, or the localization key if no fallback keyword was set.

    Declaration
    public string Keyword { get; }
    Property Value
    Type Description
    String

    Keyword

    The Fallback Keyword to listen for, or the localization key if no fallback keyword was set.

    Declaration
    public string Keyword { get; }
    Property Value
    Type Description
    String

    LocalizedKeyword

    The localized version of the keyword

    Declaration
    public string LocalizedKeyword { get; }
    Property Value
    Type Description
    String

    LocalizedKeyword

    The localized version of the keyword

    Declaration
    public string LocalizedKeyword { get; }
    Property Value
    Type Description
    String
    In This Article
    • Constructors
      • SpeechCommands(String, KeyCode, MixedRealityInputAction, String)
      • SpeechCommands(String, KeyCode, MixedRealityInputAction, String)
    • Properties
      • Action
      • Action
      • KeyCode
      • KeyCode
      • Keyword
      • Keyword
      • LocalizedKeyword
      • LocalizedKeyword
    Back to top Generated by DocFX