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

Maps binding paths from one interaction profile onto another. More...

#include <oxr/actions/oxr_rebinding_profile.h>

Collaboration diagram for oxr_rebinding_profile:

Public Member Functions

bool oxr_rebinding_profile_find_target (const struct oxr_rebinding_profile *profile, XrPath source_path, XrPath *out_target_path)
 Find a target binding path in a rebinding profile for source_path.
 

Data Fields

const struct oxr_rebinding_profile_template * templ
 Immutable generated source template.
 
XrPath source_profile_path
 Source interaction profile path.
 
XrPath target_profile_path
 Target interaction profile path.
 
struct oxr_rebinding * bindings
 Source-to-target binding path mappings.
 
size_t binding_count
 

Detailed Description

Maps binding paths from one interaction profile onto another.

Used when an app suggests bindings for a source profile that the device does not expose directly. Listed source paths are remapped to the target profile; unmapped paths are dropped.

This struct is never mutated after creation from the templates.

Member Function Documentation

◆ oxr_rebinding_profile_find_target()

bool oxr_rebinding_profile_find_target ( const struct oxr_rebinding_profile *  profile,
XrPath  source_path,
XrPath *  out_target_path 
)

Find a target binding path in a rebinding profile for source_path.

References bindings.

Field Documentation

◆ bindings

struct oxr_rebinding* oxr_rebinding_profile::bindings

Source-to-target binding path mappings.

Referenced by oxr_rebinding_profile_find_target().

◆ source_profile_path

XrPath oxr_rebinding_profile::source_profile_path

◆ target_profile_path

XrPath oxr_rebinding_profile::target_profile_path

◆ templ

const struct oxr_rebinding_profile_template* oxr_rebinding_profile::templ

Immutable generated source template.


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