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.

Member Functions

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.
Returns
The most recent measured value of the IAxis2D
Did you find this page helpful?