The XrHapticVibration is used in calls to ApplyHapticFeedback that trigger actionname:vibration output actions.
The duration, and frequency parameters may be clamped to implementation-dependent ranges.
type must be TYPE_HAPTIC_VIBRATIONnext must be NULL or a valid pointer to the next structure in a structure chainXrHapticBaseHeader, ApplyHapticFeedback
struct XrHapticVibration {
XrStructureType type;
void const * next;
XrDuration duration;
float frequency;
float amplitude;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrHapticVibration.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | AMPLITUDE
The struct member offsets. |
| public static final int | DURATION
The struct member offsets. |
| public static final int | FREQUENCY
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrHapticVibration(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public XrHapticVibration | |
| public static XrHapticVibration | |
| public static XrHapticVibration. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrHapticVibration | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrHapticVibration. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrHapticVibration | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrHapticVibration | |
| public static XrHapticVibration | |
| public static XrHapticVibration | create(XrHapticBaseHeader value)
Downcasts the specified |
| public static XrHapticVibration. | create(int
the buffer capacity capacity)Returns a new |
| public static XrHapticVibration. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrHapticVibration. | create(XrHapticBaseHeader.
Downcasts the specified |
| public static XrHapticVibration | |
| public static XrHapticVibration. | |
| public long | |
| public XrHapticVibration | |
| public float | |
| public XrHapticVibration | |
| public static XrHapticVibration | |
| public static XrHapticVibration. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrHapticVibration | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrHapticVibration. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static float | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public XrHapticVibration | |
| public static float | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public XrHapticVibration | set(int type, long next, long duration, float frequency, float amplitude)
Initializes this struct with the specified values. |
| public XrHapticVibration | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrHapticVibration | |
| public XrHapticVibration |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| AMPLITUDE | back to summary |
|---|---|
| public static final int AMPLITUDE The struct member offsets. | |
| DURATION | back to summary |
|---|---|
| public static final int DURATION The struct member offsets. | |
| FREQUENCY | back to summary |
|---|---|
| public static final int FREQUENCY The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XrHapticVibration | back to summary |
|---|---|
| protected XrHapticVibration(long address, ByteBuffer container) | |
| XrHapticVibration | back to summary |
|---|---|
| public XrHapticVibration(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| amplitude | back to summary |
|---|---|
| public float amplitude() the amplitude of the vibration between | |
| amplitude | back to summary |
|---|---|
| public XrHapticVibration amplitude(float value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static XrHapticVibration calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrHapticVibration. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrHapticVibration calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrHapticVibration. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrHapticVibration create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrHapticVibration create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrHapticVibration create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrHapticVibration create(XrHapticBaseHeader value) Downcasts the specified | |
| create | back to summary |
|---|---|
| public static XrHapticVibration. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrHapticVibration. Create a
| |
| create | back to summary |
|---|---|
| public static XrHapticVibration. Downcasts the specified | |
| createSafe | back to summary |
|---|---|
| public static XrHapticVibration createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrHapticVibration. Like
| |
| duration | back to summary |
|---|---|
| public long duration() the number of nanoseconds the vibration should last. If
| |
| duration | back to summary |
|---|---|
| public XrHapticVibration duration(long value) Sets the specified value to the | |
| frequency | back to summary |
|---|---|
| public float frequency() the frequency of the vibration in Hz. If | |
| frequency | back to summary |
|---|---|
| public XrHapticVibration frequency(float value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrHapticVibration malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrHapticVibration. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrHapticVibration malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrHapticVibration. Returns a new
| |
| namplitude | back to summary |
|---|---|
| public static float namplitude(long struct) Unsafe version of | |
| namplitude | back to summary |
|---|---|
| public static void namplitude(long struct, float value) Unsafe version of | |
| nduration | back to summary |
|---|---|
| public static long nduration(long struct) Unsafe version of | |
| nduration | back to summary |
|---|---|
| public static void nduration(long struct, long value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrHapticVibration next(long value) Sets the specified value to the | |
| nfrequency | back to summary |
|---|---|
| public static float nfrequency(long struct) Unsafe version of | |
| nfrequency | back to summary |
|---|---|
| public static void nfrequency(long struct, float value) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrHapticVibration set(int type, long next, long duration, float frequency, float amplitude) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrHapticVibration set(XrHapticVibration src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrHapticVibration type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrHapticVibration type$Default() Sets the | |
XrHapticVibration structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrHapticVibration |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public XrHapticVibration. | |
| public long | |
| public XrHapticVibration. | |
| public float | |
| public XrHapticVibration. | |
| protected XrHapticVibration | |
| public long | |
| public XrHapticVibration. | |
| protected XrHapticVibration. | |
| public int | |
| public XrHapticVibration. | |
| public XrHapticVibration. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrHapticVibration ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| amplitude | back to summary |
|---|---|
public float amplitude()
| |
| amplitude | back to summary |
|---|---|
| public XrHapticVibration. Sets the specified value to the | |
| duration | back to summary |
|---|---|
public long duration()
| |
| duration | back to summary |
|---|---|
| public XrHapticVibration. Sets the specified value to the | |
| frequency | back to summary |
|---|---|
public float frequency()
| |
| frequency | back to summary |
|---|---|
| public XrHapticVibration. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrHapticVibration getElementFactory() Implements abstract org.
| |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrHapticVibration. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrHapticVibration. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrHapticVibration. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrHapticVibration. Sets the | |