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

Method GetAnalog

Revive/InputManager.h:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 OVR::Vector2f GetAnalog(vr::VRActionHandle_t action)
60 {
61 vr::InputAnalogActionData_t data = {};
62 vr::VRInput()->GetAnalogActionData(action, &data, sizeof(data), Handle);
63 return OVR::Vector2f(data.x, data.y);
64 }
65
66 static OVR::Vector2f ApplyDeadzone(OVR::Vector2f axis, float deadZoneLow, float deadZoneHigh);
67 };

Callers

nothing calls this directly

Calls 1

Vector2fClass · 0.70

Tested by

no test coverage detected