Monado OpenXR Runtime
|
Simulated controller device. More...
#include "xrt/xrt_device.h"
#include "os/os_time.h"
#include "math/m_api.h"
#include "math/m_mathinclude.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_time.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_logging.h"
#include "util/u_distortion_mesh.h"
#include "simulated_interface.h"
#include <stdio.h>
#include <assert.h>
Data Structures | |
struct | simulated_device |
Macros | |
#define | CHECK_THAT_NAME_IS_AND_ERROR(NAME) |
Functions | |
static struct simulated_device * | simulated_device (struct xrt_device *xdev) |
static const char * | device_type_to_printable_handedness (enum xrt_device_type type) |
static void | simulated_device_destroy (struct xrt_device *xdev) |
static xrt_result_t | simulated_device_update_inputs (struct xrt_device *xdev) |
static xrt_result_t | simulated_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 void | simulated_device_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 | simulated_device_get_view_poses (struct xrt_device *xdev, const struct xrt_vec3 *default_eye_relation, int64_t at_timestamp_ns, uint32_t view_count, struct xrt_space_relation *out_head_relation, struct xrt_fov *out_fovs, struct xrt_pose *out_poses) |
static void | simulated_device_set_output (struct xrt_device *xdev, enum xrt_output_name name, const union xrt_output_value *value) |
struct xrt_device * | simulated_create_controller (enum xrt_device_name name, enum xrt_device_type type, const struct xrt_pose *center, struct xrt_tracking_origin *origin) |
Create a simulated controller. More... | |
Variables | |
static enum xrt_input_name | simple_inputs_array [] |
static enum xrt_output_name | simple_outputs_array [] |
static enum xrt_input_name | wmr_inputs_array [] |
static enum xrt_output_name | wmr_outputs_array [] |
static struct xrt_binding_input_pair | wmr_to_simple_inputs [4] |
static struct xrt_binding_output_pair | wmr_to_simple_outputs [1] |
static struct xrt_binding_profile | wmr_binding_profiles [1] |
static enum xrt_input_name | ml2_inputs_array [] |
static enum xrt_output_name | ml2_outputs_array [] |
static struct xrt_binding_input_pair | ml2_to_simple_inputs [4] |
static struct xrt_binding_output_pair | ml2_to_simple_outputs [1] |
static struct xrt_binding_input_pair | ml2_to_vive_wand_inputs [9] |
static struct xrt_binding_output_pair | ml2_to_vive_wand_outputs [1] |
static struct xrt_binding_profile | ml2_binding_profiles [2] |
Simulated controller device.
#define CHECK_THAT_NAME_IS_AND_ERROR | ( | NAME | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |