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

Method IsPressed

Revive/InputManager.h:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 bool IsPressed(vr::VRActionHandle_t action)
46 {
47 vr::InputDigitalActionData_t data = {};
48 vr::VRInput()->GetDigitalActionData(action, &data, sizeof(data), Handle);
49 return data.bChanged && data.bState;
50 }
51
52 bool IsReleased(vr::VRActionHandle_t action)
53 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected