Class KeyInputSystem
Utility class to poll input for key bindings.
Inherited Members
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 |