Class VREventHapticVibration

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREventHapticVibration>
org.lwjgl.openvr.VREventHapticVibration
All Implemented Interfaces:
org.lwjgl.system.Pointer

public class VREventHapticVibration extends org.lwjgl.system.Struct<VREventHapticVibration>

Layout


 struct VREvent_HapticVibration_t {
     uint64_t containerHandle();
     uint64_t componentHandle();
     float fDurationSeconds;
     float fFrequency;
     float fAmplitude;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • CONTAINERHANDLE

      public static final int CONTAINERHANDLE
      The struct member offsets.
    • COMPONENTHANDLE

      public static final int COMPONENTHANDLE
      The struct member offsets.
    • FDURATIONSECONDS

      public static final int FDURATIONSECONDS
      The struct member offsets.
    • FFREQUENCY

      public static final int FFREQUENCY
      The struct member offsets.
    • FAMPLITUDE

      public static final int FAMPLITUDE
      The struct member offsets.
  • Constructor Details

    • VREventHapticVibration

      public VREventHapticVibration(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VREventHapticVibration>
    • containerHandle

      public long containerHandle()
      property container handle of the device with the haptic component
    • componentHandle

      public long componentHandle()
      which haptic component needs to vibrate
    • 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 @Nullable VREventHapticVibration createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VREventHapticVibration.Buffer create(long address, int capacity)
      Create a VREventHapticVibration.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VREventHapticVibration.Buffer createSafe(long address, int capacity)
      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().