Package org.lwjgl.ovr
Class OVRTouchHapticsDesc
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRTouchHapticsDesc>
org.lwjgl.ovr.OVRTouchHapticsDesc
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTouchHapticsDesc
extends org.lwjgl.system.Struct<OVRTouchHapticsDesc>
implements org.lwjgl.system.NativeResource
Describes the Touch Haptics engine.
Layout
struct ovrTouchHapticsDesc {
int SampleRateHz();
int SampleSizeInBytes();
int QueueMinSizeToAvoidStarvation();
int SubmitMinSamples();
int SubmitMaxSamples();
int SubmitOptimalSamples();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRTouchHapticsDesc(ByteBuffer container) Creates aOVRTouchHapticsDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRTouchHapticsDesccalloc()Returns a newOVRTouchHapticsDescinstance allocated withmemCalloc.static OVRTouchHapticsDesc.Buffercalloc(int capacity) Returns a newOVRTouchHapticsDesc.Bufferinstance allocated withmemCalloc.static OVRTouchHapticsDesc.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRTouchHapticsDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTouchHapticsDesccalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRTouchHapticsDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTouchHapticsDescDeprecated.static OVRTouchHapticsDesc.BuffercallocStack(int capacity) Deprecated.static OVRTouchHapticsDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTouchHapticsDesccallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTouchHapticsDesccreate()Returns a newOVRTouchHapticsDescinstance allocated withBufferUtils.static OVRTouchHapticsDesc.Buffercreate(int capacity) Returns a newOVRTouchHapticsDesc.Bufferinstance allocated withBufferUtils.static OVRTouchHapticsDesccreate(long address) Returns a newOVRTouchHapticsDescinstance for the specified memory address.static OVRTouchHapticsDesc.Buffercreate(long address, int capacity) Create aOVRTouchHapticsDesc.Bufferinstance at the specified memory.static @Nullable OVRTouchHapticsDesccreateSafe(long address) static @Nullable OVRTouchHapticsDesc.BuffercreateSafe(long address, int capacity) static OVRTouchHapticsDescmalloc()Returns a newOVRTouchHapticsDescinstance allocated withmemAlloc.static OVRTouchHapticsDesc.Buffermalloc(int capacity) Returns a newOVRTouchHapticsDesc.Bufferinstance allocated withmemAlloc.static OVRTouchHapticsDesc.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRTouchHapticsDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRTouchHapticsDescmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRTouchHapticsDescinstance allocated on the specifiedMemoryStack.static OVRTouchHapticsDescDeprecated.static OVRTouchHapticsDesc.BuffermallocStack(int capacity) Deprecated.static OVRTouchHapticsDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTouchHapticsDescmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnQueueMinSizeToAvoidStarvation(long struct) Unsafe version ofQueueMinSizeToAvoidStarvation().static intnSampleRateHz(long struct) Unsafe version ofSampleRateHz().static intnSampleSizeInBytes(long struct) Unsafe version ofSampleSizeInBytes().static intnSubmitMaxSamples(long struct) Unsafe version ofSubmitMaxSamples().static intnSubmitMinSamples(long struct) Unsafe version ofSubmitMinSamples().static intnSubmitOptimalSamples(long struct) Unsafe version ofSubmitOptimalSamples().intQueue size that would guarantee Haptics engine would not starve for data.intHaptics engine frequency/sample-rate, sample time in seconds equals1.0/sampleRateHzintSize of each Haptics sample, sample value range is[0, 2^(Bytes*8)-1]intsizeof()intMaximum number of samples that can be sent to Haptics throughSubmitControllerVibrationintMinimum number of samples that can be sent to Haptics throughSubmitControllerVibrationintOptimal number of samples that can be sent to Haptics throughSubmitControllerVibrationMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SAMPLERATEHZ
public static final int SAMPLERATEHZThe struct member offsets. -
SAMPLESIZEINBYTES
public static final int SAMPLESIZEINBYTESThe struct member offsets. -
QUEUEMINSIZETOAVOIDSTARVATION
public static final int QUEUEMINSIZETOAVOIDSTARVATIONThe struct member offsets. -
SUBMITMINSAMPLES
public static final int SUBMITMINSAMPLESThe struct member offsets. -
SUBMITMAXSAMPLES
public static final int SUBMITMAXSAMPLESThe struct member offsets. -
SUBMITOPTIMALSAMPLES
public static final int SUBMITOPTIMALSAMPLESThe struct member offsets.
-
-
Constructor Details
-
OVRTouchHapticsDesc
Creates aOVRTouchHapticsDescinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRTouchHapticsDesc>
-
SampleRateHz
public int SampleRateHz()Haptics engine frequency/sample-rate, sample time in seconds equals1.0/sampleRateHz -
SampleSizeInBytes
public int SampleSizeInBytes()Size of each Haptics sample, sample value range is[0, 2^(Bytes*8)-1] -
QueueMinSizeToAvoidStarvation
public int QueueMinSizeToAvoidStarvation()Queue size that would guarantee Haptics engine would not starve for data. Make sure size doesn't drop below it for best results. -
SubmitMinSamples
public int SubmitMinSamples()Minimum number of samples that can be sent to Haptics throughSubmitControllerVibration -
SubmitMaxSamples
public int SubmitMaxSamples()Maximum number of samples that can be sent to Haptics throughSubmitControllerVibration -
SubmitOptimalSamples
public int SubmitOptimalSamples()Optimal number of samples that can be sent to Haptics throughSubmitControllerVibration -
malloc
Returns a newOVRTouchHapticsDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRTouchHapticsDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRTouchHapticsDescinstance allocated withBufferUtils. -
create
Returns a newOVRTouchHapticsDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRTouchHapticsDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRTouchHapticsDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRTouchHapticsDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRTouchHapticsDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static OVRTouchHapticsDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static OVRTouchHapticsDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRTouchHapticsDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRTouchHapticsDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRTouchHapticsDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRTouchHapticsDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nSampleRateHz
public static int nSampleRateHz(long struct) Unsafe version ofSampleRateHz(). -
nSampleSizeInBytes
public static int nSampleSizeInBytes(long struct) Unsafe version ofSampleSizeInBytes(). -
nQueueMinSizeToAvoidStarvation
public static int nQueueMinSizeToAvoidStarvation(long struct) Unsafe version ofQueueMinSizeToAvoidStarvation(). -
nSubmitMinSamples
public static int nSubmitMinSamples(long struct) Unsafe version ofSubmitMinSamples(). -
nSubmitMaxSamples
public static int nSubmitMaxSamples(long struct) Unsafe version ofSubmitMaxSamples(). -
nSubmitOptimalSamples
public static int nSubmitOptimalSamples(long struct) Unsafe version ofSubmitOptimalSamples().
-