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.Struct
Member 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 class
VREventHapticVibration.Buffer
An array ofVREventHapticVibration
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COMPONENTHANDLE
CONTAINERHANDLE
FAMPLITUDE
FDURATIONSECONDS
FFREQUENCYThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VREventHapticVibration(java.nio.ByteBuffer container)
Creates aVREventHapticVibration
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
componentHandle()
Returns the value of thecomponentHandle
field.long
containerHandle()
Returns the value of thecontainerHandle
field.static VREventHapticVibration
create(long address)
Returns a newVREventHapticVibration
instance for the specified memory address.static VREventHapticVibration.Buffer
create(long address, int capacity)
Create aVREventHapticVibration.Buffer
instance at the specified memory.static VREventHapticVibration
createSafe(long address)
static VREventHapticVibration.Buffer
createSafe(long address, int capacity)
float
fAmplitude()
Returns the value of thefAmplitude
field.float
fDurationSeconds()
Returns the value of thefDurationSeconds
field.float
fFrequency()
Returns the value of thefFrequency
field.static long
ncomponentHandle(long struct)
Unsafe version ofcomponentHandle()
.static long
ncontainerHandle(long struct)
Unsafe version ofcontainerHandle()
.static float
nfAmplitude(long struct)
Unsafe version offAmplitude()
.static float
nfDurationSeconds(long struct)
Unsafe version offDurationSeconds()
.static float
nfFrequency(long struct)
Unsafe version offFrequency()
.int
sizeof()
-
-
-
Constructor Detail
-
VREventHapticVibration
public VREventHapticVibration(java.nio.ByteBuffer container)
Creates aVREventHapticVibration
instance at the current position of the specifiedByteBuffer
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()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
containerHandle
public long containerHandle()
Returns the value of thecontainerHandle
field.
-
componentHandle
public long componentHandle()
Returns the value of thecomponentHandle
field.
-
fDurationSeconds
public float fDurationSeconds()
Returns the value of thefDurationSeconds
field.
-
fFrequency
public float fFrequency()
Returns the value of thefFrequency
field.
-
fAmplitude
public float fAmplitude()
Returns the value of thefAmplitude
field.
-
create
public static VREventHapticVibration create(long address)
Returns a newVREventHapticVibration
instance 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.Buffer
instance 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()
.
-
-