|
Monado OpenXR Runtime
|
Simple do-nothing simulated driver. More...

Files | |
| file | simulated_controller.c |
| Simulated controller device. | |
| file | simulated_hmd.c |
| Simulated HMD device. | |
| file | simulated_interface.h |
| Interface to simulated driver. | |
| file | simulated_prober.c |
| Simulated prober code. | |
Enumerations | |
| enum | simulated_movement { SIMULATED_MOVEMENT_WOBBLE , SIMULATED_MOVEMENT_ROTATE , SIMULATED_MOVEMENT_STATIONARY } |
| What type of movement should the simulated device do. More... | |
Functions | |
| enum u_logging_level | simulated_log_level (void) |
| Return the logging level that we want for the simulated related code. | |
| struct xrt_auto_prober * | simulated_create_auto_prober (void) |
| Create a auto prober for simulated devices. | |
| struct xrt_device * | simulated_hmd_create (enum simulated_movement movement, const struct xrt_pose *center) |
| Create a simulated hmd. | |
| 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. | |
Simple do-nothing simulated driver.
| enum simulated_movement |
#include <drivers/simulated/simulated_interface.h>
What type of movement should the simulated device do.
| struct xrt_auto_prober * simulated_create_auto_prober | ( | void | ) |
#include <drivers/simulated/simulated_interface.h>
Create a auto prober for simulated devices.
References xrt_auto_prober::destroy, xrt_auto_prober::lelo_dallas_autoprobe, and U_TYPED_CALLOC.
| 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 | ||
| ) |
#include <drivers/simulated/simulated_interface.h>
Create a simulated controller.
Supported configs:
References xrt_input::active, ARRAY_SIZE, xrt_device::binding_profile_count, xrt_device::input_count, xrt_device::inputs, xrt_binding_profile::name, xrt_device::name, xrt_device::output_count, xrt_device::outputs, xrt_device::serial, xrt_device::str, xrt_device::supported, xrt_device::tracking_origin, u_device_populate_function_pointers(), u_var_add_root(), and xrt_device::update_inputs.
| struct xrt_device * simulated_hmd_create | ( | enum simulated_movement | movement, |
| const struct xrt_pose * | center | ||
| ) |
#include <drivers/simulated/simulated_interface.h>
Create a simulated hmd.
References xrt_device::hmd, os_monotonic_get_ns(), simulated_log_level(), u_device_get_view_poses(), u_device_get_visibility_mask(), u_device_noop_update_inputs(), u_device_setup_one_eye(), u_device_setup_split_side_by_side(), u_distortion_mesh_set_none(), U_LOG_E, u_var_add_root(), and XRT_INPUT_GENERIC_HEAD_POSE.
Referenced by sdl_system_devices_init(), and simulated_open_system_impl().
| enum u_logging_level simulated_log_level | ( | void | ) |
#include <drivers/simulated/simulated_interface.h>
Return the logging level that we want for the simulated related code.
Referenced by simulated_hmd_create().