@Override
    public void triggerHapticPulse(int controllerIndex, float seconds) {
        if (environment.isInVR() == false || isInputDeviceTracking(controllerIndex) == false) {
            return;
        }

        // apparently only axis ID of 0 works
        VRSystem.VRSystem_TriggerHapticPulse(LWJGLOpenVRInput.controllerIndex[controllerIndex],
                0, (short) Math.round(3f * seconds / 1e-3f));
    }
Create a new
<a href="https://github.com/ValveSoftware/openvr/wiki/API-Documentation">OpenVR</a>
input attached to the given VR environment.

@param environment the VR environment to which the input is attached.
jme3-vr/src/main/java/com/jme3/input/vr/lwjgl_openvr/LWJGLOpenVRInput.java