Package org.lwjgl.openvr
Class VREventHapticVibration
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventHapticVibration
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventHapticVibration extends org.lwjgl.system.StructLayout
struct VREvent_HapticVibration_t { uint64_tcontainerHandle(); uint64_tcomponentHandle(); float fDurationSeconds; float fFrequency; float fAmplitude; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVREventHapticVibration.BufferAn array ofVREventHapticVibrationstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPONENTHANDLE
CONTAINERHANDLE
FAMPLITUDE
FDURATIONSECONDS
FFREQUENCYThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventHapticVibration(java.nio.ByteBuffer container)Creates aVREventHapticVibrationinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcomponentHandle()which haptic component needs to vibratelongcontainerHandle()property container handle of the device with the haptic componentstatic VREventHapticVibrationcreate(long address)Returns a newVREventHapticVibrationinstance for the specified memory address.static VREventHapticVibration.Buffercreate(long address, int capacity)Create aVREventHapticVibration.Bufferinstance at the specified memory.static VREventHapticVibrationcreateSafe(long address)static VREventHapticVibration.BuffercreateSafe(long address, int capacity)floatfAmplitude()floatfDurationSeconds()floatfFrequency()static longncomponentHandle(long struct)Unsafe version ofcomponentHandle().static longncontainerHandle(long struct)Unsafe version ofcontainerHandle().static floatnfAmplitude(long struct)Unsafe version offAmplitude().static floatnfDurationSeconds(long struct)Unsafe version offDurationSeconds().static floatnfFrequency(long struct)Unsafe version offFrequency().intsizeof()
-
-
-
Constructor Detail
-
VREventHapticVibration
public VREventHapticVibration(java.nio.ByteBuffer container)
Creates aVREventHapticVibrationinstance at the current position of the specifiedByteBuffercontainer. 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
fDurationSecondsfield.
-
fFrequency
public float fFrequency()
- Returns:
- the value of the
fFrequencyfield.
-
fAmplitude
public float fAmplitude()
- Returns:
- the value of the
fAmplitudefield.
-
create
public static VREventHapticVibration create(long address)
Returns a newVREventHapticVibrationinstance for the specified memory address.
-
createSafe
@Nullable public static VREventHapticVibration createSafe(long address)
-
create
public static VREventHapticVibration.Buffer create(long address, int capacity)
Create aVREventHapticVibration.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VREventHapticVibration.Buffer createSafe(long address, int capacity)
-
ncontainerHandle
public static long ncontainerHandle(long struct)
Unsafe version ofcontainerHandle().
-
ncomponentHandle
public static long ncomponentHandle(long struct)
Unsafe version ofcomponentHandle().
-
nfDurationSeconds
public static float nfDurationSeconds(long struct)
Unsafe version offDurationSeconds().
-
nfFrequency
public static float nfFrequency(long struct)
Unsafe version offFrequency().
-
nfAmplitude
public static float nfAmplitude(long struct)
Unsafe version offAmplitude().
-
-