docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct QueryKeyboardLayoutCommand

    Command to query the name of the current keyboard layout from a device.

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

    Fields

    baseCommand

    Declaration
    public InputDeviceCommand baseCommand
    Field Value
    Type Description
    InputDeviceCommand

    nameBuffer

    Declaration
    public byte* nameBuffer
    Field Value
    Type Description
    byte*

    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()

    Declaration
    public static QueryKeyboardLayoutCommand Create()
    Returns
    Type Description
    QueryKeyboardLayoutCommand

    ReadLayoutName()

    Read the current keyboard layout name from nameBuffer.

    Declaration
    public string ReadLayoutName()
    Returns
    Type Description
    string

    WriteLayoutName(string)

    Write the given string to nameBuffer.

    Declaration
    public void WriteLayoutName(string name)
    Parameters
    Type Name Description
    string name

    Keyboard layout name.

    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)