Skip to content

Commit

Permalink
remove experimental oculus block
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyabsi committed Jul 30, 2024
1 parent 21c76e1 commit ac0811e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
5 changes: 2 additions & 3 deletions dist/leapify/resources/localization/localization_en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"Setting_skeletal_passthrough": "Skeletal data passthrough",
"Setting_position_passthrough": "Position data passthrough",
"Setting_automatic_switch": "Auto Switch Hand Tracking And Controllers",
"Setting_automatic_offset": "Automatic Hand Offset (Recommended)",
"Setting_manual_offset": "Manual Hand Offset (mm)",
"Setting_block_oculus": "Block Meta/Oculus Controllers"
"Setting_automatic_offset": "Automatic Hand Offset",
"Setting_manual_offset": "Manual Hand Offset (mm)"
}
3 changes: 1 addition & 2 deletions dist/leapify/resources/settings/default.vrsettings
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"positionalDataPassthrough": false,
"automaticControllerSwitching": false,
"automaticHandOffset": true,
"manualHandOffset": 0.0,
"blockOculus": false
"manualHandOffset": 0.0
}
}
7 changes: 0 additions & 7 deletions dist/leapify/resources/settings/settingsschema.vrsettings
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@
"requires": {
"/settings/driver_leapify/automaticHandOffset": false
}
},
{
"name": "/settings/driver_leapify/blockOculus",
"control": "toggle",
"label": "#{leapify}Setting_block_oculus",
"on_label": "#{leapify}Setting_toggle_on",
"off_label": "#{leapify}Setting_toggle_off"
}
]
}
Expand Down
6 changes: 0 additions & 6 deletions src/InterfaceHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ void InterfaceHook::GetGenericInterface(void* interfacePtr, const char* pchInter
{
StateManager::Get().updateControllerState(unWhichDevice, pose.deviceIsConnected);

if (manufacturer == "Oculus" && vr::VRSettings()->GetBool("driver_leapify", "handTrackingEnabled") && vr::VRSettings()->GetBool("driver_leapify", "blockOculus"))
{
pose.deviceIsConnected = false;
pose.poseIsValid = false;
}

if (vr::VRSettings()->GetBool("driver_leapify", "handTrackingEnabled") && vr::VRSettings()->GetBool("driver_leapify", "positionalDataPassthrough"))
{
pose = StateManager::Get().getLeapPose(static_cast<vr::ETrackedControllerRole>(role));
Expand Down

0 comments on commit ac0811e

Please sign in to comment.