Skip to content

Commit

Permalink
Merge pull request #15 from NWBx01/master
Browse files Browse the repository at this point in the history
Don't send HMD to SlimeVR Server
  • Loading branch information
Eirenliel authored Jun 15, 2023
2 parents 6e96bf0 + c5b29c0 commit a2a0be7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ class Trackers {
return; // don't send information on slimes
}

if (index == 19) {
return; // don't send HMD
}

if (info->status == status_val && !send_anyway) {
return; // already up to date;
}
Expand Down Expand Up @@ -326,6 +330,10 @@ class Trackers {
return; // don't bother with slimes
}

if (index == 19) {
return; // don't send HMD
}

if (pose.bPoseIsValid || pose.eTrackingResult == ETrackingResult::TrackingResult_Fallback_RotationOnly) {
if (pose.eTrackingResult == ETrackingResult::TrackingResult_Fallback_RotationOnly) {
SetStatus(index, messages::TrackerStatus_Status_OCCLUDED, just_connected);
Expand Down Expand Up @@ -411,6 +419,10 @@ class Trackers {
return; // don't send information on slimes
}

if (index == 19) {
return; // don't send HMD
}

bool should_send = false;

switch (info->state) {
Expand Down

0 comments on commit a2a0be7

Please sign in to comment.