Monado OpenXR Runtime
Loading...
Searching...
No Matches
bindings Namespace Reference

Data Structures

class  Availability
 
class  Bindings
 
class  Component
 
class  DPad
 
class  FeatureSet
 
class  Identifier
 
class  PathsByLengthCollector
 
class  Profile
 

Functions

 wl (f, *args, endNewLine=True)
 
 find_component_in_list_by_name (name, component_list, subaction_path=None, identifier_json_path=None)
 
 steamvr_subpath_name (steamvr_path, subpath_type)
 
 dpad_paths (identifier_path, center)
 
 is_valid_version (version)
 
 generate_bindings_helpers_c (template, file, b)
 
 main ()
 

Variables

str header
 

Detailed Description

Parse a JSON file describing interaction profiles and
bindings and write misc utility functions.

Function Documentation

◆ find_component_in_list_by_name()

bindings.find_component_in_list_by_name (   name,
  component_list,
  subaction_path = None,
  identifier_json_path = None 
)
Find a component with the given name in a list of components.

Referenced by oxr_bindings.generate_profile_template_entry(), and ovrd_bindings.ovrd_generate_bindings_c().

◆ generate_bindings_helpers_c()

bindings.generate_bindings_helpers_c (   template,
  file,
  b 
)
Generate the bindings helpers.

Referenced by main().

◆ is_valid_version()

bindings.is_valid_version (   version)
Returns whether the version is a valid version that is > 0.0

Referenced by bindings.Profile.__init__(), oxr_bindings.get_verify_func_switch(), and oxr_bindings.get_verify_functions().

◆ main()

bindings.main ( )
Handle command line and generate a file.

References generate_bindings_helpers_c(), and main().

Referenced by main(), steamvr_profiles.main(), oxr_bindings.main(), and ovrd_bindings.main().

◆ wl()

bindings.wl (   f,
args,
  endNewLine = True 
)
Write lines

Referenced by ovrd_bindings.ovrd_generate_bindings_c().

Variable Documentation

◆ header

str bindings.header
Initial value:
1= '''// Copyright 2020-2025, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief {brief}.
6 * @author Jakob Bornecrantz <jakob@collabora.com>
7 * @author Christoph Haag <christoph.haag@collabora.com>
8 * @author Korcan Hussein <korcan.hussein@collabora.com>
9 * @ingroup {group}
10 */
11'''