Class TestInputUtilities
Utility class to provide helpful functions for applying input in tests
Inheritance
TestInputUtilities
Assembly: cs.temp.dll.dll
public static class TestInputUtilities
Methods
Fires a global input click event by given input source and for given input action type.
If testExec is not null, the function will execute in between the input down and input up raised events.
The testExec function parameter is useful for executing tests and asserts in between raised events.
Declaration
public static IEnumerator ExecuteGlobalClick(IMixedRealityInputSource defaultInputSource, MixedRealityInputAction inputAction, Func<IEnumerator> testExec = null)
Parameters
Type |
Name |
Description |
IMixedRealityInputSource |
defaultInputSource |
|
MixedRealityInputAction |
inputAction |
|
Func<IEnumerator> |
testExec |
|
Returns
Type |
Description |
IEnumerator |
|
Fires speech command to default input system with given string and input action type.
If no input source is provided, then the first detected input source is used in conjunction with the raised event.
Declaration
public static IEnumerator ExecuteSpeechCommand(string voiceCommand, MixedRealityInputAction inputAction, IMixedRealityInputSource inputSource = null)
Parameters
Type |
Name |
Description |
String |
voiceCommand |
|
MixedRealityInputAction |
inputAction |
|
IMixedRealityInputSource |
inputSource |
|
Returns
Type |
Description |
IEnumerator |
|