Skip to content
Snippets Groups Projects
Commit 8f948197 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkOpenVRRenderWindowInteractor: remove unused function

parent fb43d62e
No related branches found
No related tags found
No related merge requests found
......@@ -381,29 +381,4 @@ void vtkOpenVRRenderWindowInteractor::AddAction(
}
}
//------------------------------------------------------------------------------
// Purpose: Returns true if the action is active and its state is true
//------------------------------------------------------------------------------
bool GetDigitalActionState(
vr::VRActionHandle_t action, vr::VRInputValueHandle_t* pDevicePath = nullptr)
{
vr::InputDigitalActionData_t actionData;
vr::VRInput()->GetDigitalActionData(
action, &actionData, sizeof(actionData), vr::k_ulInvalidInputValueHandle);
if (pDevicePath)
{
*pDevicePath = vr::k_ulInvalidInputValueHandle;
if (actionData.bActive)
{
vr::InputOriginInfo_t originInfo;
if (vr::VRInputError_None ==
vr::VRInput()->GetOriginTrackedDeviceInfo(
actionData.activeOrigin, &originInfo, sizeof(originInfo)))
{
*pDevicePath = originInfo.devicePath;
}
}
}
return actionData.bActive && actionData.bState;
}
VTK_ABI_NAMESPACE_END
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment