Class VRInput


  • public class VRInput
    extends java.lang.Object
    • Method Detail

      • nVRInput_SetActionManifestPath

        public static int nVRInput_SetActionManifestPath​(long pchActionManifestPath)
        Unsafe version of: SetActionManifestPath
      • VRInput_SetActionManifestPath

        public static int VRInput_SetActionManifestPath​(java.nio.ByteBuffer pchActionManifestPath)
        
        public static int VRInput_SetActionManifestPath​(java.lang.CharSequence pchActionManifestPath)
        
        Sets the path to the action manifest JSON file that is used by this application. If this information was set on the Steam partner site, calls to this function are ignored. If the Steam partner site setting and the path provided by this call are different, VR.EVRInputError_VRInputError_MismatchedActionManifest is returned.

        This call must be made before the first call to UpdateActionState or PollNextEvent.

      • nVRInput_GetActionSetHandle

        public static int nVRInput_GetActionSetHandle​(long pchActionSetName,
                                                      long pHandle)
        Unsafe version of: GetActionSetHandle
      • VRInput_GetActionSetHandle

        public static int VRInput_GetActionSetHandle​(java.nio.ByteBuffer pchActionSetName,
                                                     java.nio.LongBuffer pHandle)
        
        public static int VRInput_GetActionSetHandle​(java.lang.CharSequence pchActionSetName,
                                                     java.nio.LongBuffer pHandle)
        
        Returns a handle for an action set. This handle is used for all performance-sensitive calls.
      • nVRInput_GetActionHandle

        public static int nVRInput_GetActionHandle​(long pchActionName,
                                                   long pHandle)
        Unsafe version of: GetActionHandle
      • VRInput_GetActionHandle

        public static int VRInput_GetActionHandle​(java.nio.ByteBuffer pchActionName,
                                                  java.nio.LongBuffer pHandle)
        
        public static int VRInput_GetActionHandle​(java.lang.CharSequence pchActionName,
                                                  java.nio.LongBuffer pHandle)
        
        Returns a handle for an action. This handle is used for all performance-sensitive calls.
      • nVRInput_GetInputSourceHandle

        public static int nVRInput_GetInputSourceHandle​(long pchInputSourcePath,
                                                        long pHandle)
        Unsafe version of: GetInputSourceHandle
      • VRInput_GetInputSourceHandle

        public static int VRInput_GetInputSourceHandle​(java.nio.ByteBuffer pchInputSourcePath,
                                                       java.nio.LongBuffer pHandle)
        
        public static int VRInput_GetInputSourceHandle​(java.lang.CharSequence pchInputSourcePath,
                                                       java.nio.LongBuffer pHandle)
        
        Returns a handle for any path in the input system. E.g. /user/hand/right.
      • nVRInput_UpdateActionState

        public static int nVRInput_UpdateActionState​(long pSets,
                                                     int unSizeOfVRSelectedActionSet_t,
                                                     int unSetCount)
        Unsafe version of: UpdateActionState
      • VRInput_UpdateActionState

        public static int VRInput_UpdateActionState​(VRActiveActionSet.Buffer pSets,
                                                    int unSizeOfVRSelectedActionSet_t)
        Reads the current state into all actions. After this call, the results of Get*Action calls will be the same until the next call to UpdateActionState.
      • nVRInput_GetDigitalActionData

        public static int nVRInput_GetDigitalActionData​(long action,
                                                        long pActionData,
                                                        int unActionDataSize,
                                                        long ulRestrictToDevice)
        Unsafe version of: GetDigitalActionData
      • nVRInput_GetAnalogActionData

        public static int nVRInput_GetAnalogActionData​(long action,
                                                       long pActionData,
                                                       int unActionDataSize,
                                                       long ulRestrictToDevice)
        Unsafe version of: GetAnalogActionData
      • nVRInput_GetPoseActionData

        public static int nVRInput_GetPoseActionData​(long action,
                                                     int eOrigin,
                                                     float fPredictedSecondsFromNow,
                                                     long pActionData,
                                                     int unActionDataSize,
                                                     long ulRestrictToDevice)
        Unsafe version of: GetPoseActionData
      • nVRInput_GetSkeletalActionData

        public static int nVRInput_GetSkeletalActionData​(long action,
                                                         long pActionData,
                                                         int unActionDataSize,
                                                         long ulRestrictToDevice)
        Unsafe version of: GetSkeletalActionData
      • VRInput_GetSkeletalActionData

        public static int VRInput_GetSkeletalActionData​(long action,
                                                        InputSkeletalActionData.Buffer pActionData,
                                                        long ulRestrictToDevice)
        Reads the state of a skeletal action given its handle.
      • nVRInput_GetSkeletalBoneData

        public static int nVRInput_GetSkeletalBoneData​(long action,
                                                       int eTransformSpace,
                                                       int eMotionRange,
                                                       long pTransformArray,
                                                       int unTransformArrayCount,
                                                       long ulRestrictToDevice)
        Unsafe version of: GetSkeletalBoneData
      • nVRInput_GetSkeletalBoneDataCompressed

        public static int nVRInput_GetSkeletalBoneDataCompressed​(long action,
                                                                 int eTransformSpace,
                                                                 int eMotionRange,
                                                                 long pvCompressedData,
                                                                 int unCompressedSize,
                                                                 long punRequiredCompressedSize,
                                                                 long ulRestrictToDevice)
      • nVRInput_UncompressSkeletalActionData

        public static int nVRInput_UncompressSkeletalActionData​(long pvCompressedBuffer,
                                                                int unCompressedBufferSize,
                                                                long peTransformSpace,
                                                                long pTransformArray,
                                                                int unTransformArrayCount)
        Unsafe version of: UncompressSkeletalActionData
      • VRInput_UncompressSkeletalActionData

        public static int VRInput_UncompressSkeletalActionData​(java.nio.ByteBuffer pvCompressedBuffer,
                                                               java.nio.IntBuffer peTransformSpace,
                                                               VRBoneTransform.Buffer pTransformArray)
        Turns a compressed buffer from GetSkeletalBoneDataCompressed and turns it back into a bone transform array.
      • VRInput_TriggerHapticVibrationAction

        public static int VRInput_TriggerHapticVibrationAction​(long action,
                                                               float fStartSecondsFromNow,
                                                               float fDurationSeconds,
                                                               float fFrequency,
                                                               float fAmplitude,
                                                               long ulRestrictToDevice)
        Triggers a haptic event as described by the specified action.
      • nVRInput_GetActionOrigins

        public static int nVRInput_GetActionOrigins​(long actionSetHandle,
                                                    long digitalActionHandle,
                                                    long originsOut,
                                                    int originOutCount)
        Unsafe version of: GetActionOrigins
      • VRInput_GetActionOrigins

        public static int VRInput_GetActionOrigins​(long actionSetHandle,
                                                   long digitalActionHandle,
                                                   java.nio.LongBuffer originsOut)
        Retrieve origin handles for an action.
      • nVRInput_GetOriginLocalizedName

        public static int nVRInput_GetOriginLocalizedName​(long origin,
                                                          long pchNameArray,
                                                          int unNameArraySize)
        Unsafe version of: GetOriginLocalizedName
      • VRInput_GetOriginLocalizedName

        public static int VRInput_GetOriginLocalizedName​(long origin,
                                                         java.nio.ByteBuffer pchNameArray)
        Retrieves the name of the origin in the current language.
      • nVRInput_GetOriginTrackedDeviceInfo

        public static int nVRInput_GetOriginTrackedDeviceInfo​(long origin,
                                                              long pOriginInfo,
                                                              int unOriginInfoSize)
        Unsafe version of: GetOriginTrackedDeviceInfo
      • VRInput_GetOriginTrackedDeviceInfo

        public static int VRInput_GetOriginTrackedDeviceInfo​(long origin,
                                                             InputOriginInfo.Buffer pOriginInfo)
        Retrieves useful information for the origin of this action.
      • VRInput_ShowActionOrigins

        public static int VRInput_ShowActionOrigins​(long actionSetHandle,
                                                    long ulActionHandle)
        Shows the current binding for the action in-headset.
      • nVRInput_ShowBindingsForActionSet

        public static int nVRInput_ShowBindingsForActionSet​(long pSets,
                                                            int unSizeOfVRSelectedActionSet_t,
                                                            int unSetCount,
                                                            long originToHighlight)
        Unsafe version of: ShowBindingsForActionSet
      • VRInput_ShowBindingsForActionSet

        public static int VRInput_ShowBindingsForActionSet​(VRActiveActionSet.Buffer pSets,
                                                           int unSizeOfVRSelectedActionSet_t,
                                                           long originToHighlight)
        Shows the current binding all the actions in the specified action sets.