MCPcopy Create free account
hub / github.com/LibreVR/Revive / IsConnected

Method IsConnected

Revive/InputManager.cpp:431–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431bool InputManager::OculusTouch::IsConnected() const
432{
433 // Check if a role is assigned and connected
434 vr::TrackedDeviceIndex_t index = vr::VRSystem()->GetTrackedDeviceIndexForControllerRole(Role);
435
436 if (index == vr::k_unTrackedDeviceIndexInvalid)
437 return false;
438
439 return vr::VRSystem()->IsTrackedDeviceConnected(index);
440}
441
442bool InputManager::OculusTouch::GetInputState(ovrSession session, ovrInputState* inputState)
443{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected