Monado OpenXR Runtime

Shared bindings structs for HTC Vive and Valve Index driver & Lighthouse tracking using libsurvive. More...

#include "vive/vive_bindings.h"
#include "xrt/xrt_device.h"
Include dependency graph for vive_bindings.c:

Variables

static struct xrt_binding_input_pair simple_inputs_index [4]
 
static struct xrt_binding_output_pair simple_outputs_index [1]
 
static struct xrt_binding_input_pair touch_inputs_index [19]
 
static struct xrt_binding_output_pair touch_outputs_index [1]
 
struct xrt_binding_profile vive_binding_profiles_index [2]
 
uint32_t vive_binding_profiles_index_count = ARRAY_SIZE(vive_binding_profiles_index)
 
static struct xrt_binding_input_pair simple_inputs_wand [4]
 
static struct xrt_binding_output_pair simple_outputs_wand [1]
 
struct xrt_binding_profile vive_binding_profiles_wand [1]
 
uint32_t vive_binding_profiles_wand_count = ARRAY_SIZE(vive_binding_profiles_wand)
 

Detailed Description

Variable Documentation

◆ simple_inputs_index

struct xrt_binding_input_pair simple_inputs_index[4]
static
Initial value:
= {
{XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_INDEX_TRIGGER_VALUE},
{XRT_INPUT_SIMPLE_MENU_CLICK, XRT_INPUT_INDEX_B_CLICK},
{XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_INDEX_GRIP_POSE},
{XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_INDEX_AIM_POSE},
}

◆ simple_inputs_wand

struct xrt_binding_input_pair simple_inputs_wand[4]
static
Initial value:
= {
{XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_VIVE_TRIGGER_VALUE},
{XRT_INPUT_SIMPLE_MENU_CLICK, XRT_INPUT_VIVE_MENU_CLICK},
{XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_VIVE_GRIP_POSE},
{XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_VIVE_AIM_POSE},
}

◆ simple_outputs_index

struct xrt_binding_output_pair simple_outputs_index[1]
static
Initial value:
= {
{XRT_OUTPUT_NAME_SIMPLE_VIBRATION, XRT_OUTPUT_NAME_INDEX_HAPTIC},
}

◆ simple_outputs_wand

struct xrt_binding_output_pair simple_outputs_wand[1]
static
Initial value:
= {
{XRT_OUTPUT_NAME_SIMPLE_VIBRATION, XRT_OUTPUT_NAME_VIVE_HAPTIC},
}

◆ touch_inputs_index

struct xrt_binding_input_pair touch_inputs_index[19]
static
Initial value:
= {
{XRT_INPUT_TOUCH_X_CLICK, XRT_INPUT_INDEX_A_CLICK},
{XRT_INPUT_TOUCH_X_TOUCH, XRT_INPUT_INDEX_A_TOUCH},
{XRT_INPUT_TOUCH_Y_CLICK, XRT_INPUT_INDEX_B_CLICK},
{XRT_INPUT_TOUCH_Y_TOUCH, XRT_INPUT_INDEX_B_TOUCH},
{XRT_INPUT_TOUCH_MENU_CLICK, XRT_INPUT_INDEX_SYSTEM_CLICK},
{XRT_INPUT_TOUCH_A_CLICK, XRT_INPUT_INDEX_A_CLICK},
{XRT_INPUT_TOUCH_A_TOUCH, XRT_INPUT_INDEX_A_TOUCH},
{XRT_INPUT_TOUCH_B_CLICK, XRT_INPUT_INDEX_B_CLICK},
{XRT_INPUT_TOUCH_B_TOUCH, XRT_INPUT_INDEX_B_TOUCH},
{XRT_INPUT_TOUCH_SYSTEM_CLICK, XRT_INPUT_INDEX_SYSTEM_CLICK},
{XRT_INPUT_TOUCH_SQUEEZE_VALUE, XRT_INPUT_INDEX_SQUEEZE_VALUE},
{XRT_INPUT_TOUCH_TRIGGER_TOUCH, XRT_INPUT_INDEX_TRIGGER_TOUCH},
{XRT_INPUT_TOUCH_TRIGGER_VALUE, XRT_INPUT_INDEX_TRIGGER_VALUE},
{XRT_INPUT_TOUCH_THUMBSTICK_CLICK, XRT_INPUT_INDEX_THUMBSTICK_CLICK},
{XRT_INPUT_TOUCH_THUMBSTICK_TOUCH, XRT_INPUT_INDEX_THUMBSTICK_TOUCH},
{XRT_INPUT_TOUCH_THUMBSTICK, XRT_INPUT_INDEX_THUMBSTICK},
{XRT_INPUT_TOUCH_THUMBREST_TOUCH, XRT_INPUT_INDEX_TRACKPAD_TOUCH},
{XRT_INPUT_TOUCH_GRIP_POSE, XRT_INPUT_INDEX_GRIP_POSE},
{XRT_INPUT_TOUCH_AIM_POSE, XRT_INPUT_INDEX_AIM_POSE},
}

◆ touch_outputs_index

struct xrt_binding_output_pair touch_outputs_index[1]
static
Initial value:
= {
{XRT_OUTPUT_NAME_TOUCH_HAPTIC, XRT_OUTPUT_NAME_INDEX_HAPTIC},
}

◆ vive_binding_profiles_index

struct xrt_binding_profile vive_binding_profiles_index[2]
Initial value:
= {
{
.name = XRT_DEVICE_TOUCH_CONTROLLER,
.inputs = touch_inputs_index,
.input_count = ARRAY_SIZE(touch_inputs_index),
.outputs = touch_outputs_index,
.output_count = ARRAY_SIZE(touch_outputs_index),
},
{
.name = XRT_DEVICE_SIMPLE_CONTROLLER,
.inputs = simple_inputs_index,
.input_count = ARRAY_SIZE(simple_inputs_index),
.outputs = simple_outputs_index,
.output_count = ARRAY_SIZE(simple_outputs_index),
},
}
#define ARRAY_SIZE(a)
Array size helper.
Definition: xrt_compiler.h:30

◆ vive_binding_profiles_wand

struct xrt_binding_profile vive_binding_profiles_wand[1]
Initial value:
= {
{
.name = XRT_DEVICE_SIMPLE_CONTROLLER,
.inputs = simple_inputs_wand,
.input_count = ARRAY_SIZE(simple_inputs_wand),
.outputs = simple_outputs_wand,
.output_count = ARRAY_SIZE(simple_outputs_wand),
},
}