Monado OpenXR Runtime
Data Fields
vive_controller_device Struct Reference

A Vive Controller device, representing just a single controller. More...

Collaboration diagram for vive_controller_device:
Collaboration graph
[legend]

Data Fields

struct xrt_device base
 
struct os_hid_devicecontroller_hid
 
struct os_thread_helper controller_thread
 
struct {
   uint64_t   time_ns
 
   uint32_t   last_sample_time_raw
 
   double   acc_range
 
   double   gyro_range
 
   struct xrt_vec3   acc_bias
 
   struct xrt_vec3   acc_scale
 
   struct xrt_vec3   gyro_bias
 
   struct xrt_vec3   gyro_scale
 
   struct xrt_pose   trackref
 IMU position in tracking space. More...
 
imu
 
struct m_imu_3dof fusion
 
struct {
   struct xrt_vec3   acc
 
   struct xrt_vec3   gyro
 
last
 
struct xrt_quat rot_filtered
 
bool print_spew
 
bool print_debug
 
uint32_t last_ticks
 
size_t index
 Which vive controller in the system are we? More...
 
struct {
   struct xrt_vec2   trackpad
 
   float   trigger
 
   uint8_t   buttons
 
   uint8_t   last_buttons
 
   bool   charging
 
   uint8_t   battery
 
state
 
struct {
   uint32_t   firmware_version
 
   uint8_t   hardware_revision
 
   uint8_t   hardware_version_micro
 
   uint8_t   hardware_version_minor
 
   uint8_t   hardware_version_major
 
   char *   mb_serial_number
 
   char *   model_number
 
   char *   device_serial_number
 
firmware
 
enum watchman_gen watchman_gen
 
enum controller_variant variant
 

Detailed Description

A Vive Controller device, representing just a single controller.

Field Documentation

◆ acc

struct xrt_vec3 vive_controller_device::acc

◆ acc_bias

struct xrt_vec3 vive_controller_device::acc_bias

Referenced by vive_controller_found().

◆ acc_range

double vive_controller_device::acc_range

Referenced by vive_controller_found().

◆ acc_scale

struct xrt_vec3 vive_controller_device::acc_scale

Referenced by vive_controller_found().

◆ base

struct xrt_device vive_controller_device::base

Referenced by vive_controller_found().

◆ battery

uint8_t vive_controller_device::battery

◆ buttons

uint8_t vive_controller_device::buttons

◆ charging

bool vive_controller_device::charging

◆ controller_hid

struct os_hid_device* vive_controller_device::controller_hid

Referenced by vive_controller_found().

◆ controller_thread

struct os_thread_helper vive_controller_device::controller_thread

◆ device_serial_number

char* vive_controller_device::device_serial_number

◆ firmware

struct { ... } vive_controller_device::firmware

◆ firmware_version

uint32_t vive_controller_device::firmware_version

◆ fusion

struct m_imu_3dof vive_controller_device::fusion

Referenced by vive_controller_found().

◆ gyro

struct xrt_vec3 vive_controller_device::gyro

◆ gyro_bias

struct xrt_vec3 vive_controller_device::gyro_bias

Referenced by vive_controller_found().

◆ gyro_range

double vive_controller_device::gyro_range

Referenced by vive_controller_found().

◆ gyro_scale

struct xrt_vec3 vive_controller_device::gyro_scale

Referenced by vive_controller_found().

◆ hardware_revision

uint8_t vive_controller_device::hardware_revision

◆ hardware_version_major

uint8_t vive_controller_device::hardware_version_major

◆ hardware_version_micro

uint8_t vive_controller_device::hardware_version_micro

◆ hardware_version_minor

uint8_t vive_controller_device::hardware_version_minor

◆ imu

struct { ... } vive_controller_device::imu

Referenced by vive_controller_found().

◆ index

size_t vive_controller_device::index

Which vive controller in the system are we?

Referenced by vive_controller_found().

◆ last

struct { ... } vive_controller_device::last

◆ last_buttons

uint8_t vive_controller_device::last_buttons

◆ last_sample_time_raw

uint32_t vive_controller_device::last_sample_time_raw

◆ last_ticks

uint32_t vive_controller_device::last_ticks

◆ mb_serial_number

char* vive_controller_device::mb_serial_number

◆ model_number

char* vive_controller_device::model_number

◆ print_debug

bool vive_controller_device::print_debug

Referenced by vive_controller_found().

◆ print_spew

bool vive_controller_device::print_spew

Referenced by vive_controller_found().

◆ rot_filtered

struct xrt_quat vive_controller_device::rot_filtered

◆ state

struct { ... } vive_controller_device::state

◆ time_ns

uint64_t vive_controller_device::time_ns

◆ trackpad

struct xrt_vec2 vive_controller_device::trackpad

◆ trackref

struct xrt_pose vive_controller_device::trackref

IMU position in tracking space.

◆ trigger

float vive_controller_device::trigger

◆ variant

enum controller_variant vive_controller_device::variant

Referenced by vive_controller_found().

◆ watchman_gen

enum watchman_gen vive_controller_device::watchman_gen

Referenced by vive_controller_found().


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