@Override
    public boolean isInputFocused() {
        if (environment != null){
            // not a 100% match, but the closest I can find in LWJGL. Doc seems to confirm this too.
            return VRSystem.VRSystem_IsInputAvailable();
            //return ((VR_IVRSystem_FnTable)environment.getVRHardware().getVRSystem()).IsInputFocusCapturedByAnotherProcess.apply() == 0;
        } else {
            throw new IllegalStateException("VR input is not attached to a VR environment.");
        }
    }
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