public boolean isButtonDownForStatus(int controllerIndex, VRInputType checkButton, int buttons, int touch) {
        int buttonMask = (controllerIndex == ovrHand_Left) ? ovrButton_LMask : ovrButton_RMask;
        int touchMask = (controllerIndex == ovrHand_Left) ?
                (ovrTouch_LButtonMask + ovrTouch_LPoseMask) :
                (ovrTouch_RButtonMask + ovrTouch_RPoseMask);

        switch (checkButton) {
            default:
                return false;

            case OculusTopButton: // Physical buttons
            case OculusBottomButton:
            case OculusThumbstickButton:
            case OculusMenuButton:
                return (buttons & buttonMask & checkButton.getValue()) != 0;

            case OculusTopTouch: // Standard capacitive buttons
            case OculusBottomTouch:
            case OculusThumbstickTouch:
            case OculusThumbrestTouch:
            case OculusIndexTouch:
            case OculusThumbUp: // Calculated/virtual capacitive buttons
            case OculusIndexPointing:
                return (touch & touchMask & checkButton.getValue()) != 0;
        }
    }
The object forms of the tracked controllers.
jme3-vr/src/main/java/com/jme3/input/vr/oculus/OculusVRInput.java