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

Method UpdateConnectedControllers

Revive/InputManager.cpp:123–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void InputManager::UpdateConnectedControllers()
124{
125 uint32_t types = 0;
126 for (InputDevice* device : m_InputDevices)
127 {
128 if (device->IsConnected())
129 types |= device->GetType();
130 }
131 ConnectedControllers = types;
132}
133
134ovrResult InputManager::SetControllerVibration(ovrSession session, ovrControllerType controllerType, float frequency, float amplitude)
135{

Callers 1

UpdateStatusMethod · 0.80

Calls 2

IsConnectedMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected