Package org.lwjgl.openvr
Class VRControllerState.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<VRControllerState,VRControllerState.Buffer>
-
- org.lwjgl.openvr.VRControllerState.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<VRControllerState>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- VRControllerState
public static class VRControllerState.Buffer extends org.lwjgl.system.StructBuffer<VRControllerState,VRControllerState.Buffer> implements org.lwjgl.system.NativeResource
An array ofVRControllerStatestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VRControllerAxis.BufferrAxis()Returns aVRControllerAxis.Buffer view of therAxisfield.VRControllerAxisrAxis(int index)Returns aVRControllerAxisview of the struct at the specified index of therAxisfield.VRControllerState.BufferrAxis(int index, java.util.function.Consumer<VRControllerAxis> consumer)Passes the element atindexof therAxisfield to the specifiedConsumer.VRControllerState.BufferrAxis(int index, VRControllerAxis value)Copies the specifiedVRControllerAxisat the specified index of therAxisfield.VRControllerState.BufferrAxis(java.util.function.Consumer<VRControllerAxis.Buffer> consumer)Passes therAxisfield to the specifiedConsumer.VRControllerState.BufferrAxis(VRControllerAxis.Buffer value)Copies the specifiedVRControllerAxis.Bufferto therAxisfield.longulButtonPressed()Returns the value of theulButtonPressedfield.VRControllerState.BufferulButtonPressed(long value)Sets the specified value to theulButtonPressedfield.longulButtonTouched()Returns the value of theulButtonTouchedfield.VRControllerState.BufferulButtonTouched(long value)Sets the specified value to theulButtonTouchedfield.intunPacketNum()Returns the value of theunPacketNumfield.VRControllerState.BufferunPacketNum(int value)Sets the specified value to theunPacketNumfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newVRControllerState.Bufferinstance backed by the specified container. 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 byVRControllerState.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
unPacketNum
public int unPacketNum()
Returns the value of theunPacketNumfield.
-
ulButtonPressed
public long ulButtonPressed()
Returns the value of theulButtonPressedfield.
-
ulButtonTouched
public long ulButtonTouched()
Returns the value of theulButtonTouchedfield.
-
rAxis
public VRControllerAxis.Buffer rAxis()
Returns aVRControllerAxis.Buffer view of therAxisfield.
-
rAxis
public VRControllerAxis rAxis(int index)
Returns aVRControllerAxisview of the struct at the specified index of therAxisfield.
-
unPacketNum
public VRControllerState.Buffer unPacketNum(int value)
Sets the specified value to theunPacketNumfield.
-
ulButtonPressed
public VRControllerState.Buffer ulButtonPressed(long value)
Sets the specified value to theulButtonPressedfield.
-
ulButtonTouched
public VRControllerState.Buffer ulButtonTouched(long value)
Sets the specified value to theulButtonTouchedfield.
-
rAxis
public VRControllerState.Buffer rAxis(VRControllerAxis.Buffer value)
Copies the specifiedVRControllerAxis.Bufferto therAxisfield.
-
rAxis
public VRControllerState.Buffer rAxis(int index, VRControllerAxis value)
Copies the specifiedVRControllerAxisat the specified index of therAxisfield.
-
rAxis
public VRControllerState.Buffer rAxis(java.util.function.Consumer<VRControllerAxis.Buffer> consumer)
Passes therAxisfield to the specifiedConsumer.
-
rAxis
public VRControllerState.Buffer rAxis(int index, java.util.function.Consumer<VRControllerAxis> consumer)
Passes the element atindexof therAxisfield to the specifiedConsumer.
-
-