The open source OpenXR runtime
0
fork

Configure Feed

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

d/hydra: Fix position/orientation tracking not being set correctly

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2469>

+6 -9
+6 -9
src/xrt/drivers/hydra/hydra_driver.c
··· 650 650 hs->devs[0] = U_DEVICE_ALLOCATE(struct hydra_device, flags, 10, 0); 651 651 hs->devs[1] = U_DEVICE_ALLOCATE(struct hydra_device, flags, 10, 0); 652 652 653 - // Populate the "tracking" member with the system. 654 - hs->devs[0]->base.tracking_origin = &(hs->base); 655 - hs->devs[1]->base.tracking_origin = &(hs->base); 656 - 657 653 hs->report_counter = -1; 658 654 hs->refs = 2; 659 655 ··· 686 682 hd->base.binding_profiles = binding_profiles; 687 683 hd->base.binding_profile_count = ARRAY_SIZE(binding_profiles); 688 684 685 + hd->base.tracking_origin = &hs->base; 686 + 687 + hd->base.position_tracking_supported = true; 688 + hd->base.orientation_tracking_supported = true; 689 + hd->base.device_type = XRT_DEVICE_TYPE_ANY_HAND_CONTROLLER; 690 + 689 691 out_xdevs[i] = &(hd->base); 690 692 } 691 - 692 - hs->devs[0]->base.orientation_tracking_supported = true; 693 - hs->devs[0]->base.device_type = XRT_DEVICE_TYPE_ANY_HAND_CONTROLLER; 694 - hs->devs[1]->base.position_tracking_supported = true; 695 - hs->devs[1]->base.device_type = XRT_DEVICE_TYPE_ANY_HAND_CONTROLLER; 696 693 697 694 U_LOG_I("Opened razer hydra!"); 698 695 return 2;