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

IFingerFeatureStateProvider Interface

Defines an interface for tracking and managing finger states.
This interface provides methods to query current finger states, check state transitions, and access raw feature values for hand tracking.
Common implementations include Oculus.Interaction.PoseDetection.FingerFeatureStateProvider which uses Oculus.Interaction.PoseDetection.FingerFeatureStateThresholds to quantize continuous finger movements into discrete states.

Member Functions

Retrieves the current state of a specific finger feature.
Parameters
finger
The HandFinger to query.
fingerFeature
The specific FingerFeature to check (e.g., curl, flexion).
currentState
The current state identifier if available.
Returns
True if a valid state was retrieved, false otherwise.
Checks if a specific state is active for a given finger and feature.
Parameters
finger
The HandFinger to check.
feature
The FingerFeature to evaluate.
mode
The mode of state evaluation (Is/IsNot).
stateId
The state identifier to compare against.
Returns
True if the state condition is met, false otherwise.
Gets the raw feature value for a specific finger and feature type.
Parameters
finger
The HandFinger to measure.
fingerFeature
The FingerFeature to measure.
Returns
The feature value if available, null otherwise.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon