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

Method GetDigital

Revive/InputManager.h:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37 protected:
38 bool GetDigital(vr::VRActionHandle_t action)
39 {
40 vr::InputDigitalActionData_t data = {};
41 vr::VRInput()->GetDigitalActionData(action, &data, sizeof(data), Handle);
42 return data.bState;
43 }
44
45 bool IsPressed(vr::VRActionHandle_t action)
46 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected