Monado OpenXR Runtime
rift_bindings.c File Reference

Bindings for the Rift Touch Controllers. More...

#include "rift_bindings.h"
Include dependency graph for rift_bindings.c:

Variables

static struct xrt_binding_input_pair simple_inputs_touch []
 
static struct xrt_binding_output_pair simple_outputs_touch []
 
static struct xrt_binding_input_pair touch_inputs_touch []
 
static struct xrt_binding_output_pair touch_outputs_touch []
 
static struct xrt_binding_input_pair vive_tracker_inputs_touch []
 
static struct xrt_binding_output_pair vive_tracker_outputs_touch []
 
struct xrt_binding_profile touch_profile_bindings []
 
uint32_t touch_profile_bindings_count = ARRAY_SIZE(touch_profile_bindings)
 
static struct xrt_binding_input_pair xbox_inputs_remote []
 
struct xrt_binding_profile remote_profile_bindings []
 
uint32_t remote_profile_bindings_count = ARRAY_SIZE(remote_profile_bindings)
 

Detailed Description

Bindings for the Rift Touch Controllers.

Author
Beyley Cardellio ep1cm.nosp@m.1n10.nosp@m.n123@.nosp@m.gmai.nosp@m.l.com

Variable Documentation

◆ remote_profile_bindings

struct xrt_binding_profile remote_profile_bindings[]
Initial value:
= {
{
.name = XRT_DEVICE_XBOX_CONTROLLER,
.inputs = xbox_inputs_remote,
.input_count = ARRAY_SIZE(xbox_inputs_remote),
},
}
#define ARRAY_SIZE(a)
Array size helper.
Definition: xrt_compiler.h:59

◆ simple_inputs_touch

struct xrt_binding_input_pair simple_inputs_touch[]
static
Initial value:
= {
{XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_TOUCH_TRIGGER_VALUE},
{XRT_INPUT_SIMPLE_MENU_CLICK, XRT_INPUT_TOUCH_MENU_CLICK},
{XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_TOUCH_GRIP_POSE},
{XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_TOUCH_AIM_POSE},
}

◆ simple_outputs_touch

struct xrt_binding_output_pair simple_outputs_touch[]
static
Initial value:
= {
{XRT_OUTPUT_NAME_SIMPLE_VIBRATION, XRT_OUTPUT_NAME_TOUCH_HAPTIC},
}

◆ touch_inputs_touch

struct xrt_binding_input_pair touch_inputs_touch[]
static
Initial value:
= {
{XRT_INPUT_TOUCH_X_CLICK, XRT_INPUT_TOUCH_X_CLICK},
{XRT_INPUT_TOUCH_X_TOUCH, XRT_INPUT_TOUCH_X_TOUCH},
{XRT_INPUT_TOUCH_Y_CLICK, XRT_INPUT_TOUCH_Y_CLICK},
{XRT_INPUT_TOUCH_Y_TOUCH, XRT_INPUT_TOUCH_Y_TOUCH},
{XRT_INPUT_TOUCH_MENU_CLICK, XRT_INPUT_TOUCH_MENU_CLICK},
{XRT_INPUT_TOUCH_A_CLICK, XRT_INPUT_TOUCH_A_CLICK},
{XRT_INPUT_TOUCH_A_TOUCH, XRT_INPUT_TOUCH_A_TOUCH},
{XRT_INPUT_TOUCH_B_CLICK, XRT_INPUT_TOUCH_B_CLICK},
{XRT_INPUT_TOUCH_B_TOUCH, XRT_INPUT_TOUCH_B_TOUCH},
{XRT_INPUT_TOUCH_SYSTEM_CLICK, XRT_INPUT_TOUCH_SYSTEM_CLICK},
{XRT_INPUT_TOUCH_SQUEEZE_VALUE, XRT_INPUT_TOUCH_SQUEEZE_VALUE},
{XRT_INPUT_TOUCH_TRIGGER_TOUCH, XRT_INPUT_TOUCH_TRIGGER_TOUCH},
{XRT_INPUT_TOUCH_TRIGGER_VALUE, XRT_INPUT_TOUCH_TRIGGER_VALUE},
{XRT_INPUT_TOUCH_THUMBSTICK_CLICK, XRT_INPUT_TOUCH_THUMBSTICK_CLICK},
{XRT_INPUT_TOUCH_THUMBSTICK_TOUCH, XRT_INPUT_TOUCH_THUMBSTICK_TOUCH},
{XRT_INPUT_TOUCH_THUMBSTICK, XRT_INPUT_TOUCH_THUMBSTICK},
{XRT_INPUT_TOUCH_THUMBREST_TOUCH, XRT_INPUT_TOUCH_THUMBREST_TOUCH},
{XRT_INPUT_TOUCH_GRIP_POSE, XRT_INPUT_TOUCH_GRIP_POSE},
{XRT_INPUT_TOUCH_AIM_POSE, XRT_INPUT_TOUCH_AIM_POSE},
{XRT_INPUT_TOUCH_TRIGGER_PROXIMITY, XRT_INPUT_TOUCH_TRIGGER_PROXIMITY},
{XRT_INPUT_TOUCH_THUMB_PROXIMITY, XRT_INPUT_TOUCH_THUMB_PROXIMITY},
}

◆ touch_outputs_touch

struct xrt_binding_output_pair touch_outputs_touch[]
static
Initial value:
= {
{XRT_OUTPUT_NAME_TOUCH_HAPTIC, XRT_OUTPUT_NAME_TOUCH_HAPTIC},
}

◆ touch_profile_bindings

struct xrt_binding_profile touch_profile_bindings[]
Initial value:
= {
{
.name = XRT_DEVICE_TOUCH_CONTROLLER,
.inputs = touch_inputs_touch,
.input_count = ARRAY_SIZE(touch_inputs_touch),
.outputs = touch_outputs_touch,
.output_count = ARRAY_SIZE(touch_outputs_touch),
},
{
.name = XRT_DEVICE_SIMPLE_CONTROLLER,
.inputs = simple_inputs_touch,
.input_count = ARRAY_SIZE(simple_inputs_touch),
.outputs = simple_outputs_touch,
.output_count = ARRAY_SIZE(simple_outputs_touch),
},
{
.name = XRT_DEVICE_VIVE_TRACKER,
.inputs = vive_tracker_inputs_touch,
.input_count = ARRAY_SIZE(vive_tracker_inputs_touch),
.outputs = vive_tracker_outputs_touch,
.output_count = ARRAY_SIZE(vive_tracker_outputs_touch),
},
}

◆ vive_tracker_inputs_touch

struct xrt_binding_input_pair vive_tracker_inputs_touch[]
static
Initial value:
= {
{XRT_INPUT_VIVE_TRACKER_MENU_CLICK, XRT_INPUT_TOUCH_MENU_CLICK},
{XRT_INPUT_VIVE_TRACKER_MENU_CLICK, XRT_INPUT_TOUCH_SYSTEM_CLICK},
{XRT_INPUT_VIVE_TRACKER_TRIGGER_CLICK, XRT_INPUT_TOUCH_TRIGGER_VALUE},
{XRT_INPUT_VIVE_TRACKER_SQUEEZE_CLICK, XRT_INPUT_TOUCH_SQUEEZE_VALUE},
{XRT_INPUT_VIVE_TRACKER_TRIGGER_VALUE, XRT_INPUT_TOUCH_TRIGGER_VALUE},
{XRT_INPUT_VIVE_TRACKER_TRACKPAD, XRT_INPUT_TOUCH_THUMBSTICK},
{XRT_INPUT_VIVE_TRACKER_TRACKPAD_CLICK, XRT_INPUT_TOUCH_THUMBSTICK_CLICK},
{XRT_INPUT_VIVE_TRACKER_TRACKPAD_TOUCH, XRT_INPUT_TOUCH_THUMBSTICK_TOUCH},
{XRT_INPUT_VIVE_TRACKER_GRIP_POSE, XRT_INPUT_TOUCH_GRIP_POSE},
{XRT_INPUT_GENERIC_TRACKER_POSE, XRT_INPUT_TOUCH_GRIP_POSE},
}

◆ vive_tracker_outputs_touch

struct xrt_binding_output_pair vive_tracker_outputs_touch[]
static
Initial value:
= {
{XRT_OUTPUT_NAME_VIVE_TRACKER_HAPTIC, XRT_OUTPUT_NAME_TOUCH_HAPTIC},
}

◆ xbox_inputs_remote

struct xrt_binding_input_pair xbox_inputs_remote[]
static
Initial value:
= {
{XRT_INPUT_XBOX_A_CLICK, XRT_INPUT_RIFT_REMOTE_SELECT_CLICK},
{XRT_INPUT_XBOX_B_CLICK, XRT_INPUT_RIFT_REMOTE_VOLUME_DOWN_CLICK},
{XRT_INPUT_XBOX_X_CLICK, XRT_INPUT_RIFT_REMOTE_VOLUME_UP_CLICK},
{XRT_INPUT_XBOX_DPAD_UP_CLICK, XRT_INPUT_RIFT_REMOTE_DPAD_UP_CLICK},
{XRT_INPUT_XBOX_DPAD_DOWN_CLICK, XRT_INPUT_RIFT_REMOTE_DPAD_DOWN_CLICK},
{XRT_INPUT_XBOX_DPAD_LEFT_CLICK, XRT_INPUT_RIFT_REMOTE_DPAD_RIGHT_CLICK},
{XRT_INPUT_XBOX_DPAD_RIGHT_CLICK, XRT_INPUT_RIFT_REMOTE_DPAD_RIGHT_CLICK},
{XRT_INPUT_XBOX_VIEW_CLICK, XRT_INPUT_RIFT_REMOTE_BACK_CLICK},
{XRT_INPUT_XBOX_MENU_CLICK, XRT_INPUT_RIFT_REMOTE_OCULUS_CLICK},
}