docs.unity.cn
    Show / Hide Table of Contents

    Struct QueryKeyNameCommand

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

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.LowLevel
    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
    Int32

    Properties

    Type

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

    typeStatic

    Declaration
    public readonly FourCC typeStatic { get; }
    Property Value
    Type Description
    FourCC
    Implements
    IInputDeviceCommandInfo.typeStatic

    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
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on 27 March 2023
    Terms of use