Inherits: Resource < RefCounted < Object
Collection of OpenXRActionSet and OpenXRInteractionProfile resources for the OpenXR module.
OpenXR uses an action system similar to Godots Input map system to bind inputs and outputs on various types of XR controllers to named actions. OpenXR specifies more detail on these inputs and outputs than Godot supports.
Another important distinction is that OpenXR offers no control over these bindings. The bindings we register are suggestions, it is up to the XR runtime to offer users the ability to change these bindings. This allows the XR runtime to fill in the gaps if new hardware becomes available.
The action map therefore needs to be loaded at startup and can't be changed afterwards. This resource is a container for the entire action map.
| ||
|
void | add_action_set ( OpenXRActionSet action_set ) |
void | add_interaction_profile ( OpenXRInteractionProfile interaction_profile ) |
void | |
find_action_set ( String name ) const | |
find_interaction_profile ( String name ) const | |
get_action_set ( int idx ) const | |
get_action_set_count ( ) const | |
get_interaction_profile ( int idx ) const | |
get_interaction_profile_count ( ) const | |
void | remove_action_set ( OpenXRActionSet action_set ) |
void | remove_interaction_profile ( OpenXRInteractionProfile interaction_profile ) |
[]
Collection of OpenXRActionSets that are part of this action map.
[]
Collection of OpenXRInteractionProfiles that are part of this action map.
Add an action set.
Add an interaction profile.
Setup this action set with our default actions.
Retrieve an action set by name.
Find an interaction profile by its name (path).
Retrieve the action set at this index.
Retrieve the number of actions sets in our action map.
Get the interaction profile at this index.
Retrieve the number of interaction profiles in our action map.
Remove an action set.
Remove an interaction profile.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_openxractionmap.html