From 7a538f56925132f0facd08de8ac827d731b99d51 Mon Sep 17 00:00:00 2001 From: Alexander Allman Date: Tue, 9 Apr 2024 13:43:59 +0100 Subject: [PATCH] Review fixes --- src/LeapHandDriver.cpp | 7 ------- src/LeapTrackedDriver.cpp | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/LeapHandDriver.cpp b/src/LeapHandDriver.cpp index dd73f00..3f1d31d 100644 --- a/src/LeapHandDriver.cpp +++ b/src/LeapHandDriver.cpp @@ -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); diff --git a/src/LeapTrackedDriver.cpp b/src/LeapTrackedDriver.cpp index 891d44e..2a840f4 100644 --- a/src/LeapTrackedDriver.cpp +++ b/src/LeapTrackedDriver.cpp @@ -116,4 +116,4 @@ auto LeapTrackedDriver::ProcessDebugRequestSettings(const DebugRequestPayload& r response[response_warnings_key_] += warning; } } -} \ No newline at end of file +}