|
enum | vive_controller_input_index {
VIVE_CONTROLLER_INDEX_AIM_POSE = 0
, VIVE_CONTROLLER_INDEX_GRIP_POSE
, VIVE_CONTROLLER_INDEX_SYSTEM_CLICK
, VIVE_CONTROLLER_INDEX_TRIGGER_CLICK
,
VIVE_CONTROLLER_INDEX_TRIGGER_VALUE
, VIVE_CONTROLLER_INDEX_TRACKPAD
, VIVE_CONTROLLER_INDEX_TRACKPAD_TOUCH
, VIVE_CONTROLLER_INDEX_SQUEEZE_CLICK
,
VIVE_CONTROLLER_INDEX_MENU_CLICK
, VIVE_CONTROLLER_INDEX_TRACKPAD_CLICK
, VIVE_CONTROLLER_INDEX_THUMBSTICK
, VIVE_CONTROLLER_INDEX_A_CLICK
,
VIVE_CONTROLLER_INDEX_B_CLICK
, VIVE_CONTROLLER_INDEX_THUMBSTICK_CLICK
, VIVE_CONTROLLER_INDEX_THUMBSTICK_TOUCH
, VIVE_CONTROLLER_INDEX_SYSTEM_TOUCH
,
VIVE_CONTROLLER_INDEX_A_TOUCH
, VIVE_CONTROLLER_INDEX_B_TOUCH
, VIVE_CONTROLLER_INDEX_SQUEEZE_VALUE
, VIVE_CONTROLLER_INDEX_SQUEEZE_FORCE
,
VIVE_CONTROLLER_INDEX_TRIGGER_TOUCH
, VIVE_CONTROLLER_INDEX_TRACKPAD_FORCE
, VIVE_CONTROLLER_HAND_TRACKING
, VIVE_CONTROLLER_MAX_INDEX
} |
|
|
static struct vive_controller_device * | vive_controller_device (struct xrt_device *xdev) |
|
static void | get_pose (struct vive_controller_device *d, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation) |
|
static void | vive_controller_device_destroy (struct xrt_device *xdev) |
|
static xrt_result_t | vive_controller_device_wand_update_inputs (struct xrt_device *xdev) |
|
static xrt_result_t | vive_controller_device_index_update_inputs (struct xrt_device *xdev) |
|
static void | vive_controller_get_hand_tracking (struct xrt_device *xdev, enum xrt_input_name name, int64_t requested_timestamp_ns, struct xrt_hand_joint_set *out_value, int64_t *out_timestamp_ns) |
|
static void | vive_controller_device_get_tracked_pose (struct xrt_device *xdev, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation) |
|
static int | vive_controller_haptic_pulse (struct vive_controller_device *d, const union xrt_output_value *value) |
|
static void | vive_controller_device_set_output (struct xrt_device *xdev, enum xrt_output_name name, const union xrt_output_value *value) |
|
static void | controller_handle_battery (struct vive_controller_device *d, struct vive_controller_battery_sample *sample) |
|
static void | controller_handle_buttons (struct vive_controller_device *d, struct vive_controller_button_sample *sample) |
|
static void | controller_handle_touch_position (struct vive_controller_device *d, struct vive_controller_touch_sample *sample) |
|
static void | controller_handle_analog_trigger (struct vive_controller_device *d, struct vive_controller_trigger_sample *sample) |
|
static void | vive_controller_handle_imu_sample (struct vive_controller_device *d, struct watchman_imu_sample *sample) |
|
static void | controller_handle_touch_force (struct vive_controller_device *d, struct watchman_touch_force *sample) |
|
static void | vive_controller_handle_lighthousev1 (struct vive_controller_device *d, uint8_t *buf, uint8_t len) |
|
static void | vive_controller_decode_watchmanv1 (struct vive_controller_device *d, struct vive_controller_message *message) |
|
static void | vive_controller_decode_watchmanv2 (struct vive_controller_device *d, struct vive_controller_message *message) |
|
static void | vive_controller_decode_message (struct vive_controller_device *d, struct vive_controller_message *message) |
|
static int | vive_controller_device_update (struct vive_controller_device *d) |
|
static void * | vive_controller_run_thread (void *ptr) |
|
void | vive_controller_reset_pose_cb (void *ptr) |
|
static void | vive_controller_setup_ui (struct vive_controller_device *d) |
|
struct vive_controller_device * | vive_controller_create (struct os_hid_device *controller_hid, enum watchman_gen watchman_gen, int controller_num) |
|