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

IAxis2D Interface

An interface designating that implementing types represent two-dimensional measurements or "axes." Such measurements can be used to encapsulate thumbsticks and similar input modalities (such as from ControllerInput.Primary2DAxis), in contrast to buttons and other lower-dimensional input modalities.

Methods

Value ()
Returns the most recent measured value of the IAxis2D; for example, a type representing a ControllerInput.Primary2DAxis might return (0.5f, 0.5f) if the underlying thumbstick is being held slightly up and to the right of its neutral position.
Signature
Vector2 Oculus.Interaction.Input.IAxis2D.Value()
Returns
Vector2  The most recent measured value of the IAxis2D