Class InputActionHandler
Script used to handle input action events. Invokes Unity events when the configured input action starts or ends.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class InputActionHandler : BaseInputHandler, IMixedRealityInputActionHandler, IMixedRealityBaseInputHandler, IEventSystemHandler
Fields
OnInputActionEnded
Unity event raised on action end, e.g. button released or gesture completed. Includes the input event that triggered the action.
Declaration
public InputActionUnityEvent OnInputActionEnded
Field Value
Type | Description |
---|---|
InputActionUnityEvent |
OnInputActionStarted
Unity event raised on action start, e.g. button pressed or gesture started. Includes the input event that triggered the action.
Declaration
public InputActionUnityEvent OnInputActionStarted
Field Value
Type | Description |
---|---|
InputActionUnityEvent |
Methods
RegisterHandlers()
Overload this method to specify, which global events component wants to listen to. Use RegisterHandler API of InputSystem
Declaration
protected override void RegisterHandlers()
Overrides
UnregisterHandlers()
Overload this method to specify, which global events component should stop listening to. Use UnregisterHandler API of InputSystem
Declaration
protected override void UnregisterHandlers()
Overrides
Explicit Interface Implementations
IMixedRealityInputActionHandler.OnActionEnded(BaseInputEventData)
Declaration
void IMixedRealityInputActionHandler.OnActionEnded(BaseInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
BaseInputEventData | eventData |
IMixedRealityInputActionHandler.OnActionStarted(BaseInputEventData)
Declaration
void IMixedRealityInputActionHandler.OnActionStarted(BaseInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
BaseInputEventData | eventData |