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

Method OculusRemote

Revive/InputManager.cpp:523–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523InputManager::OculusRemote::OculusRemote(vr::VRActionSetHandle_t actionSet)
524 : InputDevice(actionSet)
525{
526#define GET_REMOTE_ACTION(x) vr::VRInput()->GetActionHandle( \
527 "/actions/remote/in/" #x, &m_##x)
528
529 GET_REMOTE_ACTION(Button_Up);
530 GET_REMOTE_ACTION(Button_Down);
531 GET_REMOTE_ACTION(Button_Left);
532 GET_REMOTE_ACTION(Button_Right);
533 GET_REMOTE_ACTION(Button_Enter);
534 GET_REMOTE_ACTION(Button_Back);
535 GET_REMOTE_ACTION(Button_VolUp);
536 GET_REMOTE_ACTION(Button_VolDown);
537
538#undef GET_REMOTE_ACTION
539}
540
541bool InputManager::OculusRemote::IsConnected() const
542{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected