C# Class Microsoft.MixedReality.Toolkit.Input.InputSystemGlobalHandlerListener

This component ensures that input events are forwarded to this component when focus or gaze is not required.
Inheritance: MonoBehaviour
Mostra file Open project: microsoft/MixedReality-WorldLockingTools-Samples

Protected Methods

Method Description
EnsureInputSystemValid ( ) : Task

A task that will only complete when the input system has in a valid state.

It's possible for this object to have been destroyed after the await, which implies that callers should check that this != null after awaiting this task.

OnDisable ( ) : void
OnEnable ( ) : void
RegisterHandlers ( ) : void

Overload this method to specify, which global events component wants to listen to. Use RegisterHandler API of InputSystem

Start ( ) : void
UnregisterHandlers ( ) : void

Overload this method to specify, which global events component should stop listening to. Use UnregisterHandler API of InputSystem

Method Details

EnsureInputSystemValid() protected method

A task that will only complete when the input system has in a valid state.

It's possible for this object to have been destroyed after the await, which implies that callers should check that this != null after awaiting this task.

protected EnsureInputSystemValid ( ) : Task
return Task

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

RegisterHandlers() protected abstract method

Overload this method to specify, which global events component wants to listen to. Use RegisterHandler API of InputSystem
protected abstract RegisterHandlers ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

UnregisterHandlers() protected abstract method

Overload this method to specify, which global events component should stop listening to. Use UnregisterHandler API of InputSystem
protected abstract UnregisterHandlers ( ) : void
return void