Monado OpenXR Runtime
Loading...
Searching...
No Matches
contactglove.h File Reference

Implementation of ContactGlove device driver. More...

Include dependency graph for contactglove.h:

Go to the source code of this file.

Data Structures

struct  contactglove_dongle
 A dongle for ContactGlove gloves. More...
 
struct  contactglove_device
 A single ContactGlove glove. More...
 

Enumerations

enum  contactglove_device_inputs {
  CONTACTGLOVE_DEVICE_INPUT_HT_UNOBSTRUCTED = 0 , CONTACTGLOVE_DEVICE_INPUT_A_CLICK , CONTACTGLOVE_DEVICE_INPUT_B_CLICK , CONTACTGLOVE_DEVICE_INPUT_X_CLICK ,
  CONTACTGLOVE_DEVICE_INPUT_Y_CLICK , CONTACTGLOVE_DEVICE_INPUT_SYSTEM_CLICK , CONTACTGLOVE_DEVICE_INPUT_PAIRING_CLICK , CONTACTGLOVE_DEVICE_INPUT_TRIGGER_VALUE ,
  CONTACTGLOVE_DEVICE_INPUT_TRIGGER_CLICK , CONTACTGLOVE_DEVICE_INPUT_SQUEEZE_VALUE , CONTACTGLOVE_DEVICE_INPUT_THUMBSTICK , CONTACTGLOVE_DEVICE_INPUT_THUMBSTICK_CLICK ,
  CONTACTGLOVE_DEVICE_INPUT_GRIP_POSE , CONTACTGLOVE_DEVICE_INPUT_AIM_POSE , CONTACTGLOVE_DEVICE_INPUT_COUNT
}
 

Variables

static struct xrt_binding_input_pair simple_inputs_magnetra2 []
 
static struct xrt_binding_output_pair simple_outputs_magnetra2 []
 
static struct xrt_binding_input_pair contactglove2_inputs_magnetra2 []
 
static struct xrt_binding_output_pair contactglove2_outputs_magnetra2 []
 
static struct xrt_binding_input_pair touch_inputs_magnetra2 []
 
static struct xrt_binding_output_pair touch_outputs_magnetra2 []
 
struct xrt_binding_profile binding_profiles_magnetra2 []
 

Detailed Description

Implementation of ContactGlove device driver.

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

Variable Documentation

◆ binding_profiles_magnetra2

struct xrt_binding_profile binding_profiles_magnetra2[]
Initial value:
= {
{
.name = XRT_DEVICE_CONTACTGLOVE2,
.inputs = contactglove2_inputs_magnetra2,
.input_count = ARRAY_SIZE(contactglove2_inputs_magnetra2),
.outputs = contactglove2_outputs_magnetra2,
.output_count = ARRAY_SIZE(contactglove2_outputs_magnetra2),
},
{
.name = XRT_DEVICE_TOUCH_CONTROLLER,
.inputs = touch_inputs_magnetra2,
.input_count = ARRAY_SIZE(touch_inputs_magnetra2),
.outputs = touch_outputs_magnetra2,
.output_count = ARRAY_SIZE(touch_outputs_magnetra2),
},
{
.name = XRT_DEVICE_SIMPLE_CONTROLLER,
.inputs = simple_inputs_magnetra2,
.input_count = ARRAY_SIZE(simple_inputs_magnetra2),
.outputs = simple_outputs_magnetra2,
.output_count = ARRAY_SIZE(simple_outputs_magnetra2),
},
}
#define ARRAY_SIZE(a)
Array size helper.
Definition xrt_compiler.h:59

◆ contactglove2_inputs_magnetra2

struct xrt_binding_input_pair contactglove2_inputs_magnetra2[]
static
Initial value:
= {
{XRT_INPUT_MAGNETRA2_SQUEEZE_VALUE, XRT_INPUT_MAGNETRA2_SQUEEZE_VALUE},
{XRT_INPUT_MAGNETRA2_GRIP_POSE, XRT_INPUT_MAGNETRA2_GRIP_POSE},
{XRT_INPUT_MAGNETRA2_AIM_POSE, XRT_INPUT_MAGNETRA2_AIM_POSE},
}

◆ contactglove2_outputs_magnetra2

struct xrt_binding_output_pair contactglove2_outputs_magnetra2[]
static
Initial value:
= {
{XRT_OUTPUT_NAME_CONTACTGLOVE2_HAPTIC, XRT_OUTPUT_NAME_CONTACTGLOVE2_HAPTIC},
}

◆ simple_inputs_magnetra2

struct xrt_binding_input_pair simple_inputs_magnetra2[]
static
Initial value:
= {
{XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_MAGNETRA2_TRIGGER_VALUE},
{XRT_INPUT_SIMPLE_MENU_CLICK, XRT_INPUT_MAGNETRA2_B_CLICK},
{XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_MAGNETRA2_GRIP_POSE},
{XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_MAGNETRA2_AIM_POSE},
}

◆ simple_outputs_magnetra2

struct xrt_binding_output_pair simple_outputs_magnetra2[]
static
Initial value:
= {
{XRT_OUTPUT_NAME_SIMPLE_VIBRATION, XRT_OUTPUT_NAME_CONTACTGLOVE2_HAPTIC},
}

◆ touch_inputs_magnetra2

struct xrt_binding_input_pair touch_inputs_magnetra2[]
static
Initial value:
= {
{XRT_INPUT_TOUCH_X_CLICK, XRT_INPUT_MAGNETRA2_A_CLICK},
{XRT_INPUT_TOUCH_X_TOUCH, XRT_INPUT_MAGNETRA2_X_CLICK},
{XRT_INPUT_TOUCH_Y_CLICK, XRT_INPUT_MAGNETRA2_B_CLICK},
{XRT_INPUT_TOUCH_Y_TOUCH, XRT_INPUT_MAGNETRA2_Y_CLICK},
{XRT_INPUT_TOUCH_MENU_CLICK, XRT_INPUT_MAGNETRA2_SYSTEM_CLICK},
{XRT_INPUT_TOUCH_A_CLICK, XRT_INPUT_MAGNETRA2_A_CLICK},
{XRT_INPUT_TOUCH_A_TOUCH, XRT_INPUT_MAGNETRA2_X_CLICK},
{XRT_INPUT_TOUCH_B_CLICK, XRT_INPUT_MAGNETRA2_B_CLICK},
{XRT_INPUT_TOUCH_B_TOUCH, XRT_INPUT_MAGNETRA2_Y_CLICK},
{XRT_INPUT_TOUCH_SYSTEM_CLICK, XRT_INPUT_MAGNETRA2_SYSTEM_CLICK},
{XRT_INPUT_TOUCH_SQUEEZE_VALUE, XRT_INPUT_MAGNETRA2_SQUEEZE_VALUE},
{XRT_INPUT_TOUCH_TRIGGER_VALUE, XRT_INPUT_MAGNETRA2_TRIGGER_VALUE},
{XRT_INPUT_TOUCH_THUMBSTICK_CLICK, XRT_INPUT_MAGNETRA2_THUMBSTICK_CLICK},
{XRT_INPUT_TOUCH_THUMBSTICK, XRT_INPUT_MAGNETRA2_THUMBSTICK},
{XRT_INPUT_TOUCH_THUMBREST_TOUCH, XRT_INPUT_MAGNETRA2_PAIRING_CLICK},
{XRT_INPUT_TOUCH_GRIP_POSE, XRT_INPUT_MAGNETRA2_GRIP_POSE},
{XRT_INPUT_TOUCH_AIM_POSE, XRT_INPUT_MAGNETRA2_AIM_POSE},
}

◆ touch_outputs_magnetra2

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