struct VRControllerState_t {
uint32_t unPacketNum;
uint64_t ulButtonPressed;
uint64_t ulButtonTouched;
VRControllerAxis_t rAxis[5];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VRControllerState.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | RAXIS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | ULBUTTONPRESSED
The struct member offsets. |
| public static final int | ULBUTTONTOUCHED
The struct member offsets. |
| public static final int | UNPACKETNUM
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VRControllerState(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VRControllerState | |
| public static VRControllerState. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VRControllerState | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VRControllerState. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VRControllerState | |
| public static VRControllerState | |
| public static VRControllerState. | |
| public static VRControllerState. | |
| protected VRControllerState | 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 VRControllerState | |
| public static VRControllerState | |
| public static VRControllerState. | create(int
the buffer capacity capacity)Returns a new |
| public static VRControllerState. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VRControllerState | |
| public static VRControllerState. | |
| public static VRControllerState | |
| public static VRControllerState. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VRControllerState | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VRControllerState. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VRControllerState | |
| public static VRControllerState | |
| public static VRControllerState. | |
| public static VRControllerState. | |
| public static VRControllerAxis. | |
| public static VRControllerAxis | |
| public static void | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public VRControllerAxis. | |
| public VRControllerAxis | |
| public VRControllerState | rAxis(VRControllerAxis.
Copies the specified |
| public VRControllerState | rAxis(int index, VRControllerAxis value)
Copies the specified |
| public VRControllerState | |
| public VRControllerState | rAxis(int index, Consumer<VRControllerAxis> consumer)
Passes the element at |
| public VRControllerState | set(int unPacketNum, long ulButtonPressed, long ulButtonTouched, VRControllerAxis.
Initializes this struct with the specified values. |
| public VRControllerState | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public VRControllerState | |
| public long | |
| public VRControllerState | |
| public int | unPacketNum()
If packet num matches that on your prior call, then the controller state hasn't been changed since your last call and there is no need to process it. |
| public VRControllerState |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| RAXIS | back to summary |
|---|---|
| public static final int RAXIS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| ULBUTTONPRESSED | back to summary |
|---|---|
| public static final int ULBUTTONPRESSED The struct member offsets. | |
| ULBUTTONTOUCHED | back to summary |
|---|---|
| public static final int ULBUTTONTOUCHED The struct member offsets. | |
| UNPACKETNUM | back to summary |
|---|---|
| public static final int UNPACKETNUM The struct member offsets. | |
| VRControllerState | back to summary |
|---|---|
| protected VRControllerState(long address, ByteBuffer container) | |
| VRControllerState | back to summary |
|---|---|
| public VRControllerState(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VRControllerState calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VRControllerState. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VRControllerState calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VRControllerState. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VRControllerState callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VRControllerState callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VRControllerState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VRControllerState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VRControllerState create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VRControllerState create() Returns a new | |
| create | back to summary |
|---|---|
| public static VRControllerState create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VRControllerState. Returns a new
| |
| create | back to summary |
|---|---|
| public static VRControllerState. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VRControllerState createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VRControllerState. Like
| |
| malloc | back to summary |
|---|---|
| public static VRControllerState malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VRControllerState. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VRControllerState malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VRControllerState. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VRControllerState mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VRControllerState mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VRControllerState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VRControllerState. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nrAxis | back to summary |
|---|---|
| public static VRControllerAxis. Unsafe version of | |
| nrAxis | back to summary |
|---|---|
| public static VRControllerAxis nrAxis(long struct, int index) Unsafe version of | |
| nrAxis | back to summary |
|---|---|
| public static void nrAxis(long struct, VRControllerAxis. Unsafe version of | |
| nrAxis | back to summary |
|---|---|
| public static void nrAxis(long struct, int index, VRControllerAxis value) Unsafe version of | |
| nulButtonPressed | back to summary |
|---|---|
| public static long nulButtonPressed(long struct) Unsafe version of | |
| nulButtonPressed | back to summary |
|---|---|
| public static void nulButtonPressed(long struct, long value) Unsafe version of | |
| nulButtonTouched | back to summary |
|---|---|
| public static long nulButtonTouched(long struct) Unsafe version of | |
| nulButtonTouched | back to summary |
|---|---|
| public static void nulButtonTouched(long struct, long value) Unsafe version of | |
| nunPacketNum | back to summary |
|---|---|
| public static int nunPacketNum(long struct) Unsafe version of | |
| nunPacketNum | back to summary |
|---|---|
| public static void nunPacketNum(long struct, int value) Unsafe version of | |
| rAxis | back to summary |
|---|---|
| public VRControllerAxis. axis data for the controller's analog inputs
| |
| rAxis | back to summary |
|---|---|
| public VRControllerAxis rAxis(int index) axis data for the controller's analog inputs
| |
| rAxis | back to summary |
|---|---|
| public VRControllerState rAxis(VRControllerAxis. Copies the specified | |
| rAxis | back to summary |
|---|---|
| public VRControllerState rAxis(int index, VRControllerAxis value) Copies the specified | |
| rAxis | back to summary |
|---|---|
| public VRControllerState rAxis(Consumer<VRControllerAxis. | |
| rAxis | back to summary |
|---|---|
| public VRControllerState rAxis(int index, Consumer<VRControllerAxis> consumer) Passes the element at | |
| set | back to summary |
|---|---|
| public VRControllerState set(int unPacketNum, long ulButtonPressed, long ulButtonTouched, VRControllerAxis. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VRControllerState set(VRControllerState src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| ulButtonPressed | back to summary |
|---|---|
| public long ulButtonPressed() bit flags for each of the buttons. Use
| |
| ulButtonPressed | back to summary |
|---|---|
| public VRControllerState ulButtonPressed(long value) Sets the specified value to the | |
| ulButtonTouched | back to summary |
|---|---|
public long ulButtonTouched()
| |
| ulButtonTouched | back to summary |
|---|---|
| public VRControllerState ulButtonTouched(long value) Sets the specified value to the | |
| unPacketNum | back to summary |
|---|---|
| public int unPacketNum() If packet num matches that on your prior call, then the controller state hasn't been changed since your last call and there is no need to process it.
| |
| unPacketNum | back to summary |
|---|---|
| public VRControllerState unPacketNum(int value) Sets the specified value to the | |
VRControllerState structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VRControllerState |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VRControllerState 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) | |
| getElementFactory | back to summary |
|---|---|
| protected VRControllerState getElementFactory() Implements abstract org.
| |
| rAxis | back to summary |
|---|---|
public VRControllerAxis.
| |
| rAxis | back to summary |
|---|---|
public VRControllerAxis rAxis(int index)
| |
| rAxis | back to summary |
|---|---|
| public VRControllerState. Copies the specified | |
| rAxis | back to summary |
|---|---|
| public VRControllerState. Copies the specified | |
| rAxis | back to summary |
|---|---|
| public VRControllerState. Passes the | |
| rAxis | back to summary |
|---|---|
| public VRControllerState. Passes the element at | |
| self | back to summary |
|---|---|
| protected VRControllerState. Implements abstract org.
| |
| ulButtonPressed | back to summary |
|---|---|
public long ulButtonPressed()
| |
| ulButtonPressed | back to summary |
|---|---|
| public VRControllerState. Sets the specified value to the | |
| ulButtonTouched | back to summary |
|---|---|
public long ulButtonTouched()
| |
| ulButtonTouched | back to summary |
|---|---|
| public VRControllerState. Sets the specified value to the | |
| unPacketNum | back to summary |
|---|---|
public int unPacketNum()
| |
| unPacketNum | back to summary |
|---|---|
| public VRControllerState. Sets the specified value to the | |