Monado OpenXR Runtime
|
Driver for WMR Controllers. More...
#include "math/m_api.h"
#include "util/u_device.h"
#include "util/u_trace_marker.h"
#include "util/u_var.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include "wmr_common.h"
#include "wmr_controller.h"
Data Structures | |
struct | wmr_controller_og_input |
struct | wmr_controller_og |
Enumerations | |
enum | wmr_controller_og_input_index { WMR_CONTROLLER_INDEX_MENU_CLICK , WMR_CONTROLLER_INDEX_HOME_CLICK , WMR_CONTROLLER_INDEX_SQUEEZE_CLICK , WMR_CONTROLLER_INDEX_TRIGGER_VALUE , WMR_CONTROLLER_INDEX_THUMBSTICK_CLICK , WMR_CONTROLLER_INDEX_THUMBSTICK , WMR_CONTROLLER_INDEX_TRACKPAD_CLICK , WMR_CONTROLLER_INDEX_TRACKPAD_TOUCH , WMR_CONTROLLER_INDEX_TRACKPAD , WMR_CONTROLLER_INDEX_GRIP_POSE , WMR_CONTROLLER_INDEX_AIM_POSE } |
Indices in input list of each input. More... | |
Functions | |
static void | vec3_from_wmr_controller_accel (const int32_t sample[3], struct xrt_vec3 *out_vec) |
static void | vec3_from_wmr_controller_gyro (const int32_t sample[3], struct xrt_vec3 *out_vec) |
static bool | wmr_controller_og_packet_parse (struct wmr_controller_og *ctrl, const unsigned char *buffer, size_t len) |
static bool | handle_input_packet (struct wmr_controller_base *wcb, uint64_t time_ns, uint8_t *buffer, uint32_t buf_size) |
static xrt_result_t | wmr_controller_og_update_inputs (struct xrt_device *xdev) |
static void | wmr_controller_og_destroy (struct xrt_device *xdev) |
struct wmr_controller_base * | wmr_controller_og_create (struct wmr_controller_connection *conn, enum xrt_device_type controller_type, uint16_t pid, enum u_logging_level log_level) |
Variables | |
static struct xrt_binding_input_pair | simple_inputs_og [4] |
static struct xrt_binding_output_pair | simple_outputs_og [1] |
static struct xrt_binding_input_pair | vive_inputs_og [10] |
static struct xrt_binding_output_pair | vive_outputs_og [1] |
static struct xrt_binding_profile | binding_profiles_og [2] |
static struct xrt_binding_input_pair | simple_inputs_odyssey [4] |
static struct xrt_binding_output_pair | simple_outputs_odyssey [1] |
static struct xrt_binding_input_pair | wmr_inputs_odyssey [11] |
static struct xrt_binding_output_pair | wmr_outputs_odyssey [1] |
static struct xrt_binding_input_pair | vive_inputs_odyssey [10] |
static struct xrt_binding_output_pair | vive_outputs_odyssey [1] |
static struct xrt_binding_profile | binding_profiles_odyssey [3] |
Driver for WMR Controllers.
Indices in input list of each input.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |