The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/remote: expose hand active state to remote gui

+7
+1
src/xrt/drivers/remote/r_device.c
··· 145 145 xrt_device_get_tracked_pose(xdev, XRT_INPUT_SIMPLE_GRIP_POSE, requested_timestamp_ns, &relation); 146 146 147 147 u_hand_joints_set_out_data(&rd->hand_tracking, hand, &relation, &hand_on_handle_pose, out_value); 148 + out_value->is_active = latest->hand_tracking_active; 148 149 149 150 // This is a lie 150 151 *out_timestamp_ns = requested_timestamp_ns;
+3
src/xrt/drivers/remote/r_hub.c
··· 172 172 r->reset.hmd.pose.position.y = 1.6f; 173 173 r->reset.hmd.pose.orientation.w = 1.0f; 174 174 r->reset.left.active = true; 175 + r->reset.left.hand_tracking_active = true; 175 176 r->reset.left.pose.position.x = -0.2f; 176 177 r->reset.left.pose.position.y = 1.3f; 177 178 r->reset.left.pose.position.z = -0.5f; 178 179 r->reset.left.pose.orientation.w = 1.0f; 180 + 179 181 r->reset.right.active = true; 182 + r->reset.right.hand_tracking_active = true; 180 183 r->reset.right.pose.position.x = 0.2f; 181 184 r->reset.right.pose.position.y = 1.3f; 182 185 r->reset.right.pose.position.z = -0.5f;
+2
src/xrt/drivers/remote/r_interface.h
··· 49 49 50 50 float hand_curl[5]; 51 51 52 + bool hand_tracking_active; 53 + 52 54 bool active; 53 55 bool select; 54 56 bool menu;
+1
src/xrt/state_trackers/gui/gui_scene_remote.c
··· 228 228 #define CURL(prefix, name, index) igDragFloat(#prefix "." #name, &d->prefix.hand_curl[index], 0.01, 0.0, 1.0, "%f", 0); 229 229 #define HAND(prefix) \ 230 230 do { \ 231 + igCheckbox("Hand tracking Active", &d->prefix.hand_tracking_active); \ 231 232 CURL(prefix, little, 0); \ 232 233 CURL(prefix, ring, 1); \ 233 234 CURL(prefix, middle, 2); \