Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelarse committed Apr 9, 2024
1 parent c41b147 commit 7a538f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/LeapHandDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,6 @@ auto LeapHandDriver::UpdateFromLeapFrame(const LEAP_TRACKING_EVENT* frame) -> vo
input_ring_finger_.Update(hand.GetRingFingerCurl(), time_offset);
input_pinky_finger_.Update(hand.GetPinkyFingerCurl(), time_offset);

// Hack to trigger extended profile via system trigger
if (hand.GetPinchStrength() > 0.8f) {
const auto properties = VrDeviceProperties::FromDeviceId(id_);
properties.Set(vr::Prop_ControllerType_String, "ultraleap_hand_extended");
properties.Set(vr::Prop_InputProfilePath_String, "{ultraleap}/input/ultraleap_hand_extended_profile.json");
}

// If external input only isn't set then also update the interaction based components of the profile
if (!settings_->ExternalInputOnly()) {
input_proximity_.Update(true, time_offset);
Expand Down
2 changes: 1 addition & 1 deletion src/LeapTrackedDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ auto LeapTrackedDriver::ProcessDebugRequestSettings(const DebugRequestPayload& r
response[response_warnings_key_] += warning;
}
}
}
}

0 comments on commit 7a538f5

Please sign in to comment.