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

Method XboxGamepad

ReviveXR/InputManager.cpp:729–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729InputManager::XboxGamepad::XboxGamepad(XrInstance instance)
730 : InputDevice(instance, "xbox", "Xbox Controller")
731 , m_Button_A(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "a-click", "A pressed")
732 , m_Button_B(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "b-click", "B pressed")
733 , m_Button_RThumb(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "rthumb-click", "Right thumbstick pressed")
734 , m_Button_RShoulder(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "rshoulder-click", "Right shoulder pressed")
735 , m_Button_X(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "x-click", "X pressed")
736 , m_Button_Y(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "y-click", "Y pressed")
737 , m_Button_LThumb(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "lthumb-click", "Left thumbstick pressed")
738 , m_Button_LShoulder(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "lshoulder-click", "Left shoulder pressed")
739 , m_Button_Up(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "up-click", "Up pressed")
740 , m_Button_Down(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "down-click", "Down pressed")
741 , m_Button_Left(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "left-click", "Left pressed")
742 , m_Button_Right(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "right-click", "Right pressed")
743 , m_Button_Enter(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "enter-click", "Select pressed")
744 , m_Button_Back(this, XR_ACTION_TYPE_BOOLEAN_INPUT, "back-click", "Back pressed")
745 , m_RIndexTrigger(this, XR_ACTION_TYPE_FLOAT_INPUT, "rtrigger", "Right trigger")
746 , m_LIndexTrigger(this, XR_ACTION_TYPE_FLOAT_INPUT, "ltrigger", "Left trigger")
747 , m_RThumbstick(this, XR_ACTION_TYPE_VECTOR2F_INPUT, "rthumb", "Right thumbstick")
748 , m_LThumbstick(this, XR_ACTION_TYPE_VECTOR2F_INPUT, "lthumb", "Left thumbstick")
749 , m_RVibration(this, XR_ACTION_TYPE_VIBRATION_OUTPUT, "rvibration", "Right vibration motor")
750 , m_LVibration(this, XR_ACTION_TYPE_VIBRATION_OUTPUT, "lvibration", "Left vibration motor")
751{
752}
753
754InputManager::XboxGamepad::~XboxGamepad()
755{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected