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.StructMember documentation
containerHandle– property container handle of the device with the haptic componentcomponentHandle– which haptic component needs to vibrate
Layout
struct VREvent_HapticVibration_t { uint64_t containerHandle; uint64_t componentHandle; 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()Returns the value of thecomponentHandlefield.longcontainerHandle()Returns the value of thecontainerHandlefield.static 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()Returns the value of thefAmplitudefield.floatfDurationSeconds()Returns the value of thefDurationSecondsfield.floatfFrequency()Returns the value of thefFrequencyfield.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()
Returns the value of thecontainerHandlefield.
-
componentHandle
public long componentHandle()
Returns the value of thecomponentHandlefield.
-
fDurationSeconds
public float fDurationSeconds()
Returns the value of thefDurationSecondsfield.
-
fFrequency
public float fFrequency()
Returns the value of thefFrequencyfield.
-
fAmplitude
public float fAmplitude()
Returns the value of thefAmplitudefield.
-
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().
-
-