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

Method UpdateInputState

Revive/InputManager.cpp:107–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void InputManager::UpdateInputState()
108{
109 std::vector<vr::VRActiveActionSet_t> sets;
110 for (InputDevice* device : m_InputDevices)
111 {
112 vr::VRActiveActionSet_t set;
113 set.ulRestrictedToDevice = vr::k_ulInvalidInputValueHandle;
114 set.ulActionSet = device->ActionSet;
115 set.ulSecondaryActionSet = vr::k_ulInvalidActionSetHandle;
116 set.nPriority = 0;
117 sets.push_back(set);
118 }
119
120 m_LastError = vr::VRInput()->UpdateActionState(sets.data(), sizeof(vr::VRActiveActionSet_t), (uint32_t)sets.size());
121}
122
123void InputManager::UpdateConnectedControllers()
124{

Callers 1

WaitToBeginFrameMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected