| 429 | } |
| 430 | |
| 431 | bool 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 | |
| 442 | bool InputManager::OculusTouch::GetInputState(ovrSession session, ovrInputState* inputState) |
| 443 | { |
no outgoing calls
no test coverage detected