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

IButton Interface

An interface designating that implementing types represent Boolean input measurements.
Such measurements can be used to encapsulate button input states (such as from ControllerInput.PrimaryButton), in contrast to triggers, thumbsticks and other higher-dimensional input modalities.

Member Functions

Returns the most recent measured value of the IButton; for example, a type representing a ControllerInput.Primary2DAxisClick might return true if the underlying thumbstick is being pressed and false otherwise.
Returns
The most recent measured value of the IButton
Did you find this page helpful?
Thumbs up icon
Thumbs down icon