Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_interaction_profile Struct Reference

A single interaction profile. More...

#include <oxr/oxr_objects.h>

Collaboration diagram for oxr_interaction_profile:

Public Member Functions

void oxr_interaction_profile_destroy (struct oxr_interaction_profile *profile)
 Destroy an interaction profile.
 
struct oxr_interaction_profileoxr_interaction_profile_clone (const struct oxr_interaction_profile *src_profile)
 Clone an interaction profile.
 
void oxr_binding_find_bindings_from_act_key (struct oxr_logger *log, struct oxr_interaction_profile *profile, uint32_t key, size_t max_binding_count, struct oxr_binding **out_bindings, size_t *out_binding_count)
 Find bindings from action key in a profile.
 

Data Fields

XrPath path
 
enum xrt_device_name xname
 Used to lookup xrt_binding_profile for fallback.
 
const char * localized_name
 Name presented to the user.
 
struct oxr_bindingbindings
 
size_t binding_count
 
struct oxr_dpad_emulationdpads
 
size_t dpad_count
 
struct oxr_dpad_state dpad_state
 

Detailed Description

A single interaction profile.

Member Function Documentation

◆ oxr_binding_find_bindings_from_act_key()

void oxr_binding_find_bindings_from_act_key ( struct oxr_logger log,
struct oxr_interaction_profile profile,
uint32_t  key,
size_t  max_binding_count,
struct oxr_binding **  out_bindings,
size_t out_binding_count 
)

Find bindings from action key in a profile.

Parameters
logLogger
profileInteraction profile
keyAction key
max_binding_countMaximum number of bindings to return
out_bindingsOutput bindings array
out_binding_countOutput binding count

◆ oxr_interaction_profile_clone()

struct oxr_interaction_profile * oxr_interaction_profile_clone ( const struct oxr_interaction_profile src_profile)

Clone an interaction profile.

Parameters
src_profileSource interaction profile to clone
Returns
Cloned interaction profile, or NULL if src_profile is NULL

References oxr_dpad_state::oxr_dpad_state_clone(), oxr_binding::preferred_binding_path_index, U_TYPED_ARRAY_CALLOC, and U_TYPED_CALLOC.

Referenced by oxr_interaction_profile_array::oxr_interaction_profile_array_clone().

◆ oxr_interaction_profile_destroy()

void oxr_interaction_profile_destroy ( struct oxr_interaction_profile profile)

Destroy an interaction profile.

Parameters
profileInteraction profile to destroy

Referenced by oxr_interaction_profile_array::oxr_interaction_profile_array_clear().

Field Documentation

◆ localized_name

const char* oxr_interaction_profile::localized_name

Name presented to the user.

Referenced by bindings.Profile::__init__(), and oxr_action_get_input_source_localized_name().

◆ xname

enum xrt_device_name oxr_interaction_profile::xname

Used to lookup xrt_binding_profile for fallback.

Referenced by get_binding().


The documentation for this struct was generated from the following files: