|
#define | QWERTY_HMD_INITIAL_MOVEMENT_SPEED 0.002f |
|
#define | QWERTY_HMD_INITIAL_LOOK_SPEED 0.02f |
|
#define | QWERTY_CONTROLLER_INITIAL_MOVEMENT_SPEED 0.005f |
|
#define | QWERTY_CONTROLLER_INITIAL_LOOK_SPEED 0.05f |
|
#define | MOVEMENT_SPEED_STEP 1.25f |
|
#define | SPRINT_STEPS 5 |
|
#define | QWERTY_HMD_INITIAL_POS (struct xrt_vec3){0, 1.6f, 0} |
|
#define | QWERTY_CONTROLLER_INITIAL_POS(is_left) (struct xrt_vec3){(is_left) ? -0.2f : 0.2f, -0.3f, -0.5f} |
|
#define | QWERTY_TRIGGER 0 |
|
#define | QWERTY_MENU 1 |
|
#define | QWERTY_SQUEEZE 2 |
|
#define | QWERTY_SYSTEM 3 |
|
#define | QWERTY_THUMBSTICK 4 |
|
#define | QWERTY_THUMBSTICK_CLICK 5 |
|
#define | QWERTY_TRACKPAD 6 |
|
#define | QWERTY_TRACKPAD_TOUCH 7 |
|
#define | QWERTY_TRACKPAD_CLICK 8 |
|
#define | QWERTY_GRIP 9 |
|
#define | QWERTY_AIM 10 |
|
#define | QWERTY_VIBRATION 0 |
|
#define | QWERTY_TRACE(qd, ...) U_LOG_XDEV_IFL_T(&qd->base, qd->sys->log_level, __VA_ARGS__) |
|
#define | QWERTY_DEBUG(qd, ...) U_LOG_XDEV_IFL_D(&qd->base, qd->sys->log_level, __VA_ARGS__) |
|
#define | QWERTY_INFO(qd, ...) U_LOG_XDEV_IFL_I(&qd->base, qd->sys->log_level, __VA_ARGS__) |
|
#define | QWERTY_WARN(qd, ...) U_LOG_XDEV_IFL_W(&qd->base, qd->sys->log_level, __VA_ARGS__) |
|
#define | QWERTY_ERROR(qd, ...) U_LOG_XDEV_IFL_E(&qd->base, qd->sys->log_level, __VA_ARGS__) |
|
|
static void | qwerty_system_remove (struct qwerty_system *qs, struct qwerty_device *qd) |
|
static void | qwerty_system_destroy (struct qwerty_system *qs) |
|
static bool | eq (void *a, void *b) |
|
struct qwerty_device * | qwerty_device (struct xrt_device *xd) |
|
struct qwerty_hmd * | qwerty_hmd (struct xrt_device *xd) |
|
struct qwerty_controller * | qwerty_controller (struct xrt_device *xd) |
|
static xrt_result_t | qwerty_update_inputs (struct xrt_device *xd) |
|
static void | qwerty_set_output (struct xrt_device *xd, enum xrt_output_name name, const union xrt_output_value *value) |
|
static xrt_result_t | qwerty_get_tracked_pose (struct xrt_device *xd, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation) |
|
static void | qwerty_destroy (struct xrt_device *xd) |
|
struct qwerty_hmd * | qwerty_hmd_create (void) |
|
struct qwerty_controller * | qwerty_controller_create (bool is_left, struct qwerty_hmd *qhmd) |
|
static void | qwerty_setup_var_tracking (struct qwerty_system *qs) |
|
struct qwerty_system * | qwerty_system_create (struct qwerty_hmd *qhmd, struct qwerty_controller *qleft, struct qwerty_controller *qright, enum u_logging_level log_level) |
|
void | qwerty_press_left (struct qwerty_device *qd) |
|
void | qwerty_release_left (struct qwerty_device *qd) |
|
void | qwerty_press_right (struct qwerty_device *qd) |
|
void | qwerty_release_right (struct qwerty_device *qd) |
|
void | qwerty_press_forward (struct qwerty_device *qd) |
|
void | qwerty_release_forward (struct qwerty_device *qd) |
|
void | qwerty_press_backward (struct qwerty_device *qd) |
|
void | qwerty_release_backward (struct qwerty_device *qd) |
|
void | qwerty_press_up (struct qwerty_device *qd) |
|
void | qwerty_release_up (struct qwerty_device *qd) |
|
void | qwerty_press_down (struct qwerty_device *qd) |
|
void | qwerty_release_down (struct qwerty_device *qd) |
|
void | qwerty_press_look_left (struct qwerty_device *qd) |
|
void | qwerty_release_look_left (struct qwerty_device *qd) |
|
void | qwerty_press_look_right (struct qwerty_device *qd) |
|
void | qwerty_release_look_right (struct qwerty_device *qd) |
|
void | qwerty_press_look_up (struct qwerty_device *qd) |
|
void | qwerty_release_look_up (struct qwerty_device *qd) |
|
void | qwerty_press_look_down (struct qwerty_device *qd) |
|
void | qwerty_release_look_down (struct qwerty_device *qd) |
|
void | qwerty_press_sprint (struct qwerty_device *qd) |
|
void | qwerty_release_sprint (struct qwerty_device *qd) |
|
void | qwerty_add_look_delta (struct qwerty_device *qd, float yaw, float pitch) |
|
void | qwerty_change_movement_speed (struct qwerty_device *qd, float steps) |
|
void | qwerty_release_all (struct qwerty_device *qd) |
|
void | qwerty_press_trigger (struct qwerty_controller *qc) |
|
void | qwerty_release_trigger (struct qwerty_controller *qc) |
|
void | qwerty_press_menu (struct qwerty_controller *qc) |
|
void | qwerty_release_menu (struct qwerty_controller *qc) |
|
void | qwerty_press_squeeze (struct qwerty_controller *qc) |
|
void | qwerty_release_squeeze (struct qwerty_controller *qc) |
|
void | qwerty_press_system (struct qwerty_controller *qc) |
|
void | qwerty_release_system (struct qwerty_controller *qc) |
|
void | qwerty_press_thumbstick_left (struct qwerty_controller *qc) |
|
void | qwerty_release_thumbstick_left (struct qwerty_controller *qc) |
|
void | qwerty_press_thumbstick_right (struct qwerty_controller *qc) |
|
void | qwerty_release_thumbstick_right (struct qwerty_controller *qc) |
|
void | qwerty_press_thumbstick_up (struct qwerty_controller *qc) |
|
void | qwerty_release_thumbstick_up (struct qwerty_controller *qc) |
|
void | qwerty_press_thumbstick_down (struct qwerty_controller *qc) |
|
void | qwerty_release_thumbstick_down (struct qwerty_controller *qc) |
|
void | qwerty_press_thumbstick_click (struct qwerty_controller *qc) |
|
void | qwerty_release_thumbstick_click (struct qwerty_controller *qc) |
|
void | qwerty_press_trackpad_left (struct qwerty_controller *qc) |
|
void | qwerty_release_trackpad_left (struct qwerty_controller *qc) |
|
void | qwerty_press_trackpad_right (struct qwerty_controller *qc) |
|
void | qwerty_release_trackpad_right (struct qwerty_controller *qc) |
|
void | qwerty_press_trackpad_up (struct qwerty_controller *qc) |
|
void | qwerty_release_trackpad_up (struct qwerty_controller *qc) |
|
void | qwerty_press_trackpad_down (struct qwerty_controller *qc) |
|
void | qwerty_release_trackpad_down (struct qwerty_controller *qc) |
|
void | qwerty_press_trackpad_click (struct qwerty_controller *qc) |
|
void | qwerty_release_trackpad_click (struct qwerty_controller *qc) |
|
void | qwerty_follow_hmd (struct qwerty_controller *qc, bool follow) |
|
void | qwerty_reset_controller_pose (struct qwerty_controller *qc) |
|