@Override
    public void setActiveActionSet(String actionSet){
        assert inputMode == InputMode.ACTION_BASED : "registerActionManifest must be called before attempting to fetch action states";


        long actionSetHandle;
        if (actionSetHandles.containsKey(actionSet)){
            actionSetHandle = actionSetHandles.get(actionSet);
        }else{
            LongBuffer longBuffer = BufferUtils.createLongBuffer(1);
            int errorCode = VRInput.VRInput_GetActionHandle(actionSet, longBuffer);
            if ( errorCode != 0 )
            {
                logger.warning( "An error code of " + errorCode + " was reported while fetching an action set handle for " + actionSet );
            }
            actionSetHandle = longBuffer.get(0);
            actionSetHandles.put(actionSet,actionSetHandle);
        }

        //Todo: this seems to imply that you could have multiple active action sets at once (Although I was not able to get that to work), allow multiple action sets
        activeActionSets = VRActiveActionSet.create(1);
        activeActionSets.ulActionSet(actionSetHandle);
        activeActionSets.ulRestrictedToDevice(VR.k_ulInvalidInputValueHandle); // both hands
    }
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