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

Method OculusRemote

ReviveXR/InputManager.cpp:668–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668InputManager::OculusRemote::OculusRemote(XrInstance instance)
669 : InputDevice(instance, "remote", "Oculus Remote")
670 , m_IsConnected(false)
671 , m_Toggle_Connected(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "toggle-connect", "Connect the remote")
672 , m_Button_Up(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "up-click", "Up pressed")
673 , m_Button_Down(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "down-click", "Down pressed")
674 , m_Button_Left(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "left-click", "Left pressed")
675 , m_Button_Right(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "right-click", "Right pressed")
676 , m_Button_Enter(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "enter-click", "Select pressed")
677 , m_Button_Back(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "back-click", "Back pressed")
678 , m_Button_VolUp(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "vol-up", "Volume up")
679 , m_Button_VolDown(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "vol-down", "Volume down")
680{
681}
682
683bool InputManager::OculusRemote::IsConnected() const
684{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected