API reference
API reference
Select your platform
No SDKs available
No versions available

ScrollInputProvider Class

Extends MonoBehaviour
This class utilizes the IAxis2D interface to extract horizontal and vertical axis input data, and the IInteractorView interface to associate the scrolling input with a specific Interactor<TInteractor,TInteractable>.
The combination of these two interfaces enables this class to provide scrolling input data that can be used to drive scrolling behavior for various PointableCanvas elements in the Interaction SDK.

Methods

InjectAll ( axis2D , interactorView )
Injects all dependencies into this instance, including the 2D axis input and interactor view.
This method is used to initialize the scroll input provider with the required dependencies.
Signature
void Oculus.Interaction.Input.ScrollInputProvider.InjectAll(IAxis2D axis2D, IInteractorView interactorView)
Parameters
axis2D: IAxis2D  The IAxis2D input that will be used to extract horizontal and vertical axis data.
interactorView: IInteractorView  The IInteractorView view that will be associated with this scroll input provider.
Returns
void
InjectAxis2D ( axis2D )
Injects the 2D axis input dependency into this instance, allowing for horizontal and vertical axis data extraction.
This method is used to set the 2D axis input that will be used by the scroll input provider.
Signature
void Oculus.Interaction.Input.ScrollInputProvider.InjectAxis2D(IAxis2D axis2D)
Parameters
axis2D: IAxis2D  The IAxis2D input that will be used to extract horizontal and vertical axis data.
Returns
void
InjectInteractorView ( interactorView )
Injects the interactor view dependency into this instance, associating it with the scroll input provider.
This method is used to set the interactor view that will be used by the scroll input provider.
Signature
void Oculus.Interaction.Input.ScrollInputProvider.InjectInteractorView(IInteractorView interactorView)
Parameters
interactorView: IInteractorView  The IInteractorView view that will be associated with this scroll input provider.
Returns
void