When the runtime does not track the hands:
- Hide them in the lobby - Don't send tracking data in the stream
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "hand_tracker.h"
|
||||
|
||||
|
||||
std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> xr::hand_tracker::locate(XrSpace space, XrTime time)
|
||||
std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> xr::hand_tracker::locate(XrSpace space, XrTime time)
|
||||
{
|
||||
XrHandJointsLocateInfoEXT info{
|
||||
.type = XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT,
|
||||
@@ -49,9 +49,7 @@ std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> xr::hand_tracker::l
|
||||
CHECK_XR(xrLocateHandJointsEXT(id, &info, &locations));
|
||||
|
||||
if (!locations.isActive)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
return std::nullopt;
|
||||
|
||||
std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> joints;
|
||||
for(int i = 0; i < XR_HAND_JOINT_COUNT_EXT; i++)
|
||||
|
||||
Reference in New Issue
Block a user