Class VREventHapticVibration

  • All Implemented Interfaces:

    public class VREventHapticVibration
    extends Struct

    Member documentation

    • containerHandle – property container handle of the device with the haptic component
    • componentHandle – which haptic component needs to vibrate


     struct VREvent_HapticVibration_t {
         uint64_t containerHandle;
         uint64_t componentHandle;
         float fDurationSeconds;
         float fFrequency;
         float fAmplitude;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VREventHapticVibration

        public VREventHapticVibration​(java.nio.ByteBuffer container)
        Creates a VREventHapticVibration instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • containerHandle

        public long containerHandle()
        Returns the value of the containerHandle field.
      • componentHandle

        public long componentHandle()
        Returns the value of the componentHandle field.
      • fDurationSeconds

        public float fDurationSeconds()
        Returns the value of the fDurationSeconds field.
      • fFrequency

        public float fFrequency()
        Returns the value of the fFrequency field.
      • fAmplitude

        public float fAmplitude()
        Returns the value of the fAmplitude field.
      • create

        public static VREventHapticVibration create​(long address)
        Returns a new VREventHapticVibration instance for the specified memory address.
      • createSafe

        public static VREventHapticVibration createSafe​(long address)
        Like create, but returns null if address is NULL.
      • ncontainerHandle

        public static long ncontainerHandle​(long struct)
        Unsafe version of containerHandle().
      • ncomponentHandle

        public static long ncomponentHandle​(long struct)
        Unsafe version of componentHandle().
      • nfDurationSeconds

        public static float nfDurationSeconds​(long struct)
        Unsafe version of fDurationSeconds().
      • nfFrequency

        public static float nfFrequency​(long struct)
        Unsafe version of fFrequency().
      • nfAmplitude

        public static float nfAmplitude​(long struct)
        Unsafe version of fAmplitude().