| 589 | } |
| 590 | |
| 591 | InputManager::XboxGamepad::XboxGamepad(vr::VRActionSetHandle_t actionSet) |
| 592 | : InputDevice(actionSet) |
| 593 | { |
| 594 | #define GET_XBOX_ACTION(x) vr::VRInput()->GetActionHandle( \ |
| 595 | "/actions/xbox/in/" #x, &m_##x) |
| 596 | |
| 597 | GET_XBOX_ACTION(Button_A); |
| 598 | GET_XBOX_ACTION(Button_B); |
| 599 | GET_XBOX_ACTION(Button_RThumb); |
| 600 | GET_XBOX_ACTION(Button_RShoulder); |
| 601 | GET_XBOX_ACTION(Button_X); |
| 602 | GET_XBOX_ACTION(Button_Y); |
| 603 | GET_XBOX_ACTION(Button_LThumb); |
| 604 | GET_XBOX_ACTION(Button_LShoulder); |
| 605 | GET_XBOX_ACTION(Button_Up); |
| 606 | GET_XBOX_ACTION(Button_Down); |
| 607 | GET_XBOX_ACTION(Button_Left); |
| 608 | GET_XBOX_ACTION(Button_Right); |
| 609 | GET_XBOX_ACTION(Button_Enter); |
| 610 | GET_XBOX_ACTION(Button_Back); |
| 611 | GET_XBOX_ACTION(RIndexTrigger); |
| 612 | GET_XBOX_ACTION(LIndexTrigger); |
| 613 | GET_XBOX_ACTION(RThumbstick); |
| 614 | GET_XBOX_ACTION(LThumbstick); |
| 615 | |
| 616 | #undef GET_XBOX_ACTION |
| 617 | } |
| 618 | |
| 619 | InputManager::XboxGamepad::~XboxGamepad() |
| 620 | { |
nothing calls this directly
no outgoing calls
no test coverage detected