docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct QueryKeyNameCommand

    Command to query the current name of a key according to the current keyboard layout.

    Implements
    IInputDeviceCommandInfo
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.LowLevel
    Assembly: Unity.InputSystem.dll
    Syntax
    public struct QueryKeyNameCommand : IInputDeviceCommandInfo

    Fields

    baseCommand

    Declaration
    public InputDeviceCommand baseCommand
    Field Value
    Type Description
    InputDeviceCommand

    nameBuffer

    Declaration
    public byte* nameBuffer
    Field Value
    Type Description
    byte*

    scanOrKeyCode

    Declaration
    public int scanOrKeyCode
    Field Value
    Type Description
    int

    Properties

    Type

    Declaration
    public static FourCC Type { get; }
    Property Value
    Type Description
    FourCC

    typeStatic

    The data format identifier of the device command as a FourCC code.

    Declaration
    public FourCC typeStatic { get; }
    Property Value
    Type Description
    FourCC

    Methods

    Create(Key)

    Declaration
    public static QueryKeyNameCommand Create(Key key)
    Parameters
    Type Name Description
    Key key
    Returns
    Type Description
    QueryKeyNameCommand

    ReadKeyName()

    Declaration
    public string ReadKeyName()
    Returns
    Type Description
    string

    Implements

    IInputDeviceCommandInfo
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)