| 521 | } |
| 522 | |
| 523 | InputManager::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 | |
| 541 | bool InputManager::OculusRemote::IsConnected() const |
| 542 | { |
nothing calls this directly
no outgoing calls
no test coverage detected