We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class KeyInputSystem

    Utility class to poll input for key bindings.

    Inheritance
    Object
    KeyInputSystem
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public static class KeyInputSystem

    Methods

    GetKey(KeyBinding)

    Test if the key is currently pressed.

    Declaration
    public static bool GetKey(KeyBinding kb)
    Parameters
    Type Name Description
    KeyBinding kb
    Returns
    Type Description
    Boolean

    True if the bound key is currently pressed

    GetKeyDown(KeyBinding)

    Test if the key has been pressed since the last frame.

    Declaration
    public static bool GetKeyDown(KeyBinding kb)
    Parameters
    Type Name Description
    KeyBinding kb
    Returns
    Type Description
    Boolean

    True if the bound key was pressed since the last frame

    GetKeyUp(KeyBinding)

    Test if the key has been released since the last frame.

    Declaration
    public static bool GetKeyUp(KeyBinding kb)
    Parameters
    Type Name Description
    KeyBinding kb
    Returns
    Type Description
    Boolean

    True if the bound key was released since the last frame

    Back to top Generated by DocFX